I am scrapping the following page: https://proximity.niceic.com/mainform.aspx
First please enter '%%' in the country textbox to display all contractors in the area. Once I am in, if I inspect the HTML in the devtools I get the following:
I wanna extract all the info from the selected table. The problem is that when I scrap it using selenium I do find the table but I can't access its body or childs.
Here is my python code:
main_table = driver.find_elements_by_tag_name('table')
outer_table = main_table[3].find_element_by_tag_name('table')
print outer_table.get_attribute('innerHTML')
The code above outputs the following:
<table cellspacing="0" rules="all" bordercolor="Silver" border="1" id="dvContractorDetail" style="background-color:White;border-color:Silver;border-width:1px;border-style:Solid;height:200px;width:400px;border-collapse:collapse;">
</table>
As you can see I can only get the table tag but none of its components like tbody or all the tr tags in the tbody tag
What can I do?

screenshot of HTML or code or error is a bad idea. Consider updating the Question with formatted text based HTML and code trials.Manual Stepsyou are trying toAutomate?