Selenium python program freezes at get() function
Question:
A simple python program freezes on the get() function of the selenium driver and does not return.
Please find below the written code:
self.browser = webdriver.Ie("IEDriver\IEDriverServer.exe")
self.browser.get(<url_in_quotes>)
print('here') ##does not print
self.browser.find_element_by_id('txtUname').send_keys(self.username)
self.browser.find_element_by_id('txtPword').send_keys(self.password)
self.browser.find_element_by_id('Submit').click()
I am using python 3.11 and IEDriver.
I have tried using implicit and explicit wait but the execution of the program freezes at the get() function. Please suggest a way out.
Answers:
As suggested by Pcalkins, I made the necessary configuration changes in IE settings and the python code worked.
Please refer to the link below for recommended settings:
https://www.selenium.dev/documentation/ie_driver_server/
A simple python program freezes on the get() function of the selenium driver and does not return.
Please find below the written code:
self.browser = webdriver.Ie("IEDriver\IEDriverServer.exe")
self.browser.get(<url_in_quotes>)
print('here') ##does not print
self.browser.find_element_by_id('txtUname').send_keys(self.username)
self.browser.find_element_by_id('txtPword').send_keys(self.password)
self.browser.find_element_by_id('Submit').click()
I am using python 3.11 and IEDriver.
I have tried using implicit and explicit wait but the execution of the program freezes at the get() function. Please suggest a way out.
As suggested by Pcalkins, I made the necessary configuration changes in IE settings and the python code worked.
Please refer to the link below for recommended settings:
https://www.selenium.dev/documentation/ie_driver_server/