'Webdriverio throws undefined element for row in a table
I have to click on a button located in the first row of a table after navigating from another page. After I go to my page I check that the rows in the table are not undefined by using waitUntil.
waitUntil(
() => {
return (
myPage.myList.myRows != undefined
);
},
Timeouts.SixtySeconds,
'Rows were not found',
);
however if I try to do anything on the row by using myPage.myList.myRows[0] I get an undefined error for myRows[0]. I have checked again and again the locators and everything seems to be fine. I am at a loss about what to do.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
