how to use custom class names in WebDriverIO

692 views Asked by At

how to find an element with custom class name in WebdriverIO

how to find element with this particular class name ng-repeat="document in documentsUploaded"

enter image description here

2

There are 2 answers

0
Mike G. On

Short answer is: use CSS or xpath selectors https://webdriver.io/docs/selectors.html

ng-repeat is not a class, it's an element's attribute.

See also https://www.w3schools.com/cssref/css_selectors.asp and https://devhints.io/xpath

0
MikoSh On

The answer for your question is following CSS selector:

tr[ng-repeat='document in documentsUploaded']