Timeline for Python Selenium wait for innerHTML
Current License: CC BY-SA 3.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 28, 2017 at 9:13 | answer | added | Gaurang Shah | timeline score: 2 | |
| Aug 27, 2017 at 17:37 | comment | added | In_Circ | I need the innerHTML because I'm exporting the compiled values into a csv file | |
| Aug 27, 2017 at 17:37 | comment | added | In_Circ |
@JeffC I'm not quite sure how to use the visibility_of function as I keep getting errors. Here's my attempt: element = WebDriverWait(driver, 120).until(EC.visibility_of(element.get_attribute('innerHTML')))
|
|
| Aug 27, 2017 at 17:28 | comment | added | JeffC | Why are you trying to get the innerHTML? What is it that you are trying to do? | |
| Aug 27, 2017 at 17:27 | comment | added | JeffC | @In_Circ Try waiting for visibility instead of presence. Presence just means it's in the DOM, not that it's actionable. BTW, tr is a table row, td is a table cell. | |
| Aug 27, 2017 at 16:33 | comment | added | In_Circ |
Yes, of course. element is a cell (tr tag) inside of a table with consistent table headers (th tags). The inner HTML for each element changes 25x per page, whereas the table headers are the same on every page
|
|
| Aug 27, 2017 at 16:18 | history | edited | In_Circ | CC BY-SA 3.0 |
added 39 characters in body
|
| Aug 27, 2017 at 16:17 | comment | added | alecxe |
Unfortunately, there is not enough details provided to answer the question..could you post a sample of what the element is pointing to and what things change in the inner HTML of the element?..thanks!
|
|
| Aug 27, 2017 at 16:13 | comment | added | In_Circ | @alecxe Maybe I could use the innerHTML from the table header? | |
| Aug 27, 2017 at 15:55 | comment | added | In_Circ | It's pulling data from a database. As the loop runs, the innerHTML of element will change millions of times | |
| Aug 27, 2017 at 15:53 | comment | added | alecxe |
Do you know a specific substring or text that we can wait for to be present inside the innerHTML?
|
|
| Aug 27, 2017 at 15:47 | history | asked | In_Circ | CC BY-SA 3.0 |