Skip to content

Commit 5bdf3c8

Browse files
author
John Doherty
committed
Added example of new helper methods to docs
1 parent 564266a commit 5bdf3c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.MD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,18 @@ helpers.clearStorages();
290290

291291
// clear both cookies and storages
292292
helpers.clearCookiesAndStorages('body header');
293+
294+
// waits until an element to exist and returns it
295+
helpers.waitForCssXpathElement('#login-button', 5000);
296+
297+
// scroll until element is visible
298+
helpers.scrollToElement(webElement);
299+
300+
// select a value inside a dropdown list by its text
301+
helpers.selectByVisibleText('#country', 'Brazil');
302+
303+
// waits and returns an array of all windows opened
304+
helpers.waitForNewWindows();
293305
```
294306

295307
### Visual Comparison

0 commit comments

Comments
 (0)