how to use custom class names in WebDriverIO

710 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 best solutions below

0
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
On

The answer for your question is following CSS selector:

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