0

My Website contains a Table with two rows:

<table>
 <tr><td>Content</td><td>Content</td></tr>
 <tr><td>Content</td><td>Content</td></tr>
</table>

And i want to wait as long the Table was updated by JS and contains now three rows:

<table>
 <tr><td>Content</td><td>Content</td></tr>
 <tr><td>Content</td><td>Data</td></tr>
 <tr><td>Content</td><td>Content</td></tr>
</table>

Selenium should find the second row with the Second column and get the Data. How i can realize that?

DrEm8ee
  • 1
  • 3
  • Does this answer your question? [Selenium - wait until element is present, visible and interactable](https://stackoverflow.com/questions/59130200/selenium-wait-until-element-is-present-visible-and-interactable) – tbhaxor Oct 08 '20 at 15:43
  • @tbhaxor Thanks for your Comment. This help me a little bit. That answers me how i can wait for the row. But how i can check if is the second row of three rows? I cant identify the Rows on other ways. – DrEm8ee Oct 08 '20 at 15:56
  • @DrEm8ee : If you know what's value of `Data` then it is possible using wait. – KunduK Oct 08 '20 at 16:32
  • @KunduK I know that a String is expectect. I hope i have understood what you mean. – DrEm8ee Oct 08 '20 at 16:56
  • you can use getElements() to retrieve an array of elements. If the array's count is not 3, call it again.... (similar to catching Stale Element exceptions and re-calling if caught) – pcalkins Oct 08 '20 at 19:48

0 Answers0