Here is an example code:
<div id="productOrderContainer">
<table class="table gradient myPage">
So this table being in productOrderContainer has several columns and depending on several things will have several rows which all have several columns. An example is:
What I want to do is to for example get the first row of this table. ( rows have id's such as: <td rowspan="1">
) And then again for example in this rowspan look for a specific value in a specific <div>
So in psudo-code what I want to say is:
Get me the table, get me the n'th row, get me the value in <div id='something'>
WebDriver.findElement(By.className(""))
will locate every element in the document, not the table the OP is looking for. So the next line will collect all the<TR>
s in the entire document, not in the specific table. – Squaw