Skip to content

Commit 1756756

Browse files
committed
getFirstElementContainingText returns a promise (.click impossible) + fix typo.
1 parent 05320fb commit 1756756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ helpers.loadPage('http://www.google.com');
248248
helpers.getAttributeValue('body', 'class');
249249

250250
// get a list of elements matching a query selector who's inner text matches param.
251-
helpers.getElementsContainingText('nav[role="navigation"] ul li a', 'Safety Boots')
251+
helpers.getElementsContainingText('nav[role="navigation"] ul li a', 'Safety Boots');
252252

253253
// get first elements matching a query selector who's inner text matches textToMatch param
254-
helpers.getFirstElementContainingText('nav[role="navigation"] ul li a', 'Safety Boots').click();
254+
helpers.getFirstElementContainingText('nav[role="navigation"] ul li a', 'Safety Boots');
255255

256256
// click element(s) that are not visible (useful in situations where a menu needs a hover before a child link appears)
257257
helpers.clickHiddenElement('nav[role="navigation"] ul li a','Safety Boots');

0 commit comments

Comments
 (0)