Timeline for answer to Selenium timeoutexception with webdriver by KunduK
Current License: CC BY-SA 4.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 6, 2023 at 12:42 | comment | added | Aman Gautam | I figured out how to switch the iframe, here is the code if anyone is looking for. iframe = browser.find_element(By.XPATH, "//iframe") browser.switch_to.frame(iframe) pnr = browser.find_element(By.ID, 'ContentPlaceHolder1_txt_PNR') | |
| Sep 6, 2023 at 12:09 | comment | added | Aman Gautam | I am facing the same issue I want to access an element but i think it is nested within iframe. <iframe scrolling="yes" src="goinet.in/gonoshow/default.aspx" style="border: 0px none; margin-left:10px;min-height: 700px; margin-top: 0px; width: 926px;">. I wanted to know how do I switch to this iframe. browser.switch_to.frame(browser.find_element(<what to put here>). As this iframe does not have id or name | |
| Mar 16, 2019 at 18:18 | comment | added | C. Peck | Nice answer. As OP is a new user, I just wanted to make the explanation as clear as possible. | |
| S Mar 16, 2019 at 18:16 | history | suggested | C. Peck | CC BY-SA 4.0 |
Rewrote code summary/explanation for clarity
|
| Mar 16, 2019 at 18:15 | review | Suggested edits | |||
| S Mar 16, 2019 at 18:16 | |||||
| Mar 16, 2019 at 16:45 | vote | accept | AhlawSahla | ||
| Mar 16, 2019 at 15:43 | history | answered | KunduK | CC BY-SA 4.0 |