I have a website (private, sorry) that I'm trying to pull some text from. The relevant line, which is nested in a row of a table, when I inspect Chrome is as follows:
<div id="dataGeneral" style="width: auto; height: auto;">
<table class="someClassName">
<tbody>
<tr>
<td class="*someOtherClassName*" attrid="com.intranet.state"> TextNeeded </td>
I have been able to get the above TextNeeded via full xPath, but is very unstable and most times leads to an error (no such element: Unable to locate element....)
What other method can I use to reliably pull this text? I've tried driver.find_elemend_by_id (and all the other options) using the above attrid, but this also says no such element.
Is there a way to maybe drill down from the table id?