I am testing a web-app using Watir-webdriver and Ruby. I need to validate the content of a table on one of the webpages. The table element has no id, so I cannot directly fetch it. It is, however, nested within a div that does contain an id.
Watir-webdriver has a method (.parent) that allows you to grab the parent element of the element you are working with, but what about going the other way?
Is there something along the lines of .child or .child_element that would allow you to grab a child element through the parent element?
I've searched through Watir-webdriver's API and didn't see anything that would be of use. I was wondering if anyone here would know of a method that I missed?
Thank you.