Skip to main content
Question

Generated Subject Grid Locators Do Not Match the Rendered DOM

  • July 7, 2026
  • 1 reply
  • 16 views

Forum|alt.badge.img

Hi,

Update: After trying all generated subjects, I still cannot find a subject that targets the visible grid. It appears the generated root locator does not exist in the rendered DOM.

 

I'm trying to use the generated grid instead of Playwright locators.

According to the documentation, a generated subject should allow interactions like:

await subject.grid1.getRowByIndex(0);
await subject.grid1.getCellByExactValue('Some value');
await subject.grid1.getCellValuesByColId('column_id');

However, all generated subjects I tried fail because the generated root locator cannot be found in the DOM.

For example, Testwise generates locators like:

[data-testid="screen__..."]

but those data-testid values do not exist in the rendered page. As a result, methods such as:

subject.grid1.getRowByIndex(0)
subject.grid1.getCellByExactValue(...)
subject.grid1.getCellValuesByColId(...)

always fail, even though the grid and its rows are clearly visible and can be accessed with standard Playwright locators.

My questions are:

  1. How do you determine which generated subject belongs to a specific grid?
  2. Is there a way to verify that a generated subject is using the correct root locator?
  3. If the generated root locator does not exist in the DOM, is this a model generation issue, or am I missing a recommended approach?

I'm trying to understand whether I'm using the generated subjects incorrectly or whether the generated locator is out of sync with the current UI.

Thanks!

1 reply

Forum|alt.badge.img
  • Author
  • Rookie
  • July 7, 2026

Update : 

I investigated this further and found something interesting.

The grid I'm trying to access is rendered as:

data-testid="screen__grid-action-bar__grid4"

The generated subjects I tried (UserNestingMain, UserNestingSupplierItemMain, etc.) all generate locators for different screen roots and cannot locate this grid.

I reviewed the Testwise documentation, but I couldn't find any explanation about grids rendered as screen__grid-action-bar__gridX or whether these require a different generated subject or access pattern.

Is screen__grid-action-bar__gridX a special type of grid? If so, what is the recommended Testwise API to access it?