Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webdriver.io: Is there a way to click text?

Tags:

webdriver-io

In Webdriver.io, is there a way to click (an element by its) text?

e.g. a person has clicked and opened a drop-down menu and now wishes to click and select the desired element by its text.

like image 751
Noffica Avatar asked Nov 21 '25 08:11

Noffica


1 Answers

.click('h1=Welcome to my Page')

http://webdriver.io/guide/usage/selectors.html Element with certain text

like image 84
garajo Avatar answered Nov 24 '25 08:11

garajo