I am trying to get the HTML from a webpage that is modified by javascript after/while loading. I have followed the instructions in this tutorial. and I'm using command like this in my Python code after initially loading the page
html = browser.execute_script("return document.body.innerHTML")
While this seems to get all of the HTML Selenium elements on other pages I've tried this on, it does not seem to work on this page. If you open that page and inspect the HTML you can see all of the HTML has loaded. I want to capture the elements below, but can't. By the way WebDriverWait doesn't seem to work either...
<b>
<a href="contractor_list.asp?alpha=A">A </a>
<a href="contractor_list.asp?alpha=B">B </a>
<a href="contractor_list.asp?alpha=C">C </a>
<a href="contractor_list.asp?alpha=D">D </a>
...
How can I get Selenium to expose those elements to me so I can access them? Or, should I be using a different tool for this?