I am having trouble to login using selenium windows Internet Explorer. I am attaching the popup dialog
I need to use IE. I have tried
- driver.get('https://username:password@xyz/Secure/Local/console/mc_index.html') and it does not work in IE. So I need to handle this popup dialog box.
- with above code chrome works but I have to use IE (version ~ 11). So please avoid any other browser question.
Here is the code I am using
driver.get("https://xyz/Secure/Local/console/mc_index.html")
driver.find_element_by_id('moreInfoContainer').click()
driver.implicitly_wait(5)
parent_h = driver.current_window_handle
# click on the link that opens a new window
print(" before Popup")
driver.find_element_by_id("overridelink").click()
print("After popup")
It only prints up-to following 2 line:
Starting Opening the Automation
before Popup
After popup dialog it does not execute next code. So regardless what I do after the line "driver.find_element_by_id("overridelink").click()" selenium does nothing. It does not even print a simple "hello" after that line.
After the popup dialog it does not return the control to selenium. It prints following line after i hit the "cancel" button.
After popup
The issue here is selenium never get the control back after popup dialog shows.
