I have some problems locating elements into a web page like this:
<tr id="filter100" style="...." idx=0
<td>
<div onclick=... style=...
<table dir = "fil">
<tbody>
<tr>
<td>
<img id="imgFil100_1" src="//path..."
<td>
<td>
<img id="imgFil100_2" src="//path..."
<td>
<td>
<img id="imgFil100_3" src="//path..."
<td>
And i have a lot of buttons in this way "filterXXX". How can i locate them and click on them.
i wrote this code
List<WebElement> lc = driver.findElements(By.cssSelector("table[id*='imgFil']"));
for (int i = 0; i <= lc.size(); i++) {
lc.get(i).click();}
BTW Sorry for my english.