How do you do table handling?

For tables, I came up with many alternative solutions. There are ways to parse the tables and get all its values inside. Get each element individually and go through each row. Or you can just construct a dynamic “By” object using XPath┬áto pinpoint the exact cell.

Reason for this is that the developers aren’t giving me enough ID’s and I have to explicitly state tr[2] td[4]. If I get all the rows and get their values right away I can handle all the information using ‘for’ loops and validate the answers. However, the developers┬ádon’t like this method.

Default Asked on January 26, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.