Skip to content

Commit e9864f4

Browse files
author
John Doherty
authored
Merge pull request #52 from afuca/master
getFirstElementContainingText returns a promise
2 parents 763461c + 1756756 commit e9864f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.MD

+2-2
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)