I'm beginning to use VBA to interact with websites and I stumbled in a problem I couldn't find a solution here. I'm trying to click on a text that appears on a "new window" (which is not a new window, it's just a square that shows on top of the page and dissapears when I click on the desired line). Here is the code from that "square":
<div id="retornoBuscaDados"><table style="margin: 0px; padding: 0px; border:
0px currentColor; border-image: none; width: 500px;"><tbody><tr class="par">
<td style="width: 100px; cursor: pointer;">nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
nnnnnnn </td></tr><tr class="impar"><td nowrap="" colspan="1"> </td>
</tr><tr class="par"><td nowrap="" colspan="1"> </td></tr><tr
class="impar"><td nowrap="" colspan="1"> </td></tr><tr class="par"><td
nowrap="" colspan="1"> </td></tr><tr class="impar"><td nowrap=""
colspan="1"> </td></tr><tr class="par"><td nowrap="" colspan="1">
</td></tr><tr class="impar"><td nowrap="" colspan="1"> </td></tr><tr
class="par"><td nowrap="" colspan="1"> </td></tr></tbody></table></div>
The code from the exact line that I want to click is:
<td style="width: 100px; cursor: pointer;">
But what that line is showing is the text "nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn" (I replaced the actual text to show to you). All the other lines are blank. I don't know what I can do since until now I was only using getelementbyid("xx").click for the other click steps on my code.
Aucun commentaire:
Enregistrer un commentaire