You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ℹ️ ARIA role locators (`{role, name}`) match elements the way assistive technology does and survive markup refactors. See [Locators][17].
944
+
941
945
#### Parameters
942
946
943
947
*`locator`**([string][5] | [object][11])** (optional, `'//body'` by default) clickable link or button located by text, or any element located by CSS|XPath|strict locator. (optional, default `'//body'`)
*`locator`**([string][5] | [object][11])** located by CSS|XPath|strict locator.
1191
-
*`scrollIntoViewOptions`**(ScrollIntoViewOptions | [boolean][7])** either alignToTop=true|false or scrollIntoViewOptions. See [https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView][17].
1199
+
*`scrollIntoViewOptions`**(ScrollIntoViewOptions | [boolean][7])** either alignToTop=true|false or scrollIntoViewOptions. See [https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView][18].
1192
1200
1193
1201
Returns **void** automatically synchronized promise through #recorderSupported only for web testing
1194
1202
@@ -1218,8 +1226,12 @@ The second parameter is a context (CSS or XPath locator) to narrow the search.
1218
1226
```js
1219
1227
I.seeElement('#modal');
1220
1228
I.seeElement('#modal', '#container');
1229
+
// using ARIA role locator
1230
+
I.seeElement({role:'dialog'});
1221
1231
```
1222
1232
1233
+
> ℹ️ ARIA role locators (`{role, name}`) match elements the way assistive technology does and survive markup refactors. See [Locators][17].
1234
+
1223
1235
#### Parameters
1224
1236
1225
1237
*`locator`**([string][5] | [object][11])** located by CSS|XPath|strict locator.
0 commit comments