How To Fix Selenium Webdriver Not Opening A New Tab On Firefox 68.0 And Above?
After upgrading to firefox 68 my selenium python script broke, I wasn't able to open a new tab using the code that worked prior. from selenium import webdriver from selenium.webdri
Solution 1:
Turns out Mozilla made changes to future Firefox versions starting firefox 68,
so changing "browser.tabs.remote.autostart” value to false, simply won’t disable e10s (Multi-Process)
and as a result won't open a new tab in selenium.
you can read more about it here:
https://techdows.com/2019/05/mozilla-firefox-68-doesnt-allow-turning-off-e10s.html
https://www.ghacks.net/2016/07/22/multi-process-firefox/
The solution is to delete the previous code and use this instead:
from selenium import webdriver
from selenium.webdriver.common.keysimportKeysimport os
os.environ['MOZ_FORCE_DISABLE_E10S'] = '1'
browser = webdriver.Firefox()
browser.find_element_by_tag_name('body').send_keys(Keys.CONTROL + 't')
Post a Comment for "How To Fix Selenium Webdriver Not Opening A New Tab On Firefox 68.0 And Above?"