So, how else is it possible to open tabs? I use Selenium 2.39 (pip install selenium) and Python 2.7. So I tried this here: driver = webdriver.Firefox()īody = driver.find_element_by_tag_name('body')Īs I said, it does not work for me. Ctrl+Tab cycles through tabs in recently used order: Select this setting if you want to use the Ctrl + Tab control + tab keyboard shortcut to switch through open tabs in the order you viewed them rather than in the order they appear in the Firefox window.
with visible display) on my Mac for debugging purpose and I saw that the Firefox browser (which was opened when creating the driver object) does not open any tabs when doing as described on the SO thread. Select the General panel and go to the Tabs section. I found this here on SO : How to open a new tab using Selenium WebDriver with Java? However, I tested this locally (i.e. can any one tell me what are the methods to work with multiple tab in firefox using selenium & Py 3 I have tried to open a new tab which is not. The only step that is not working is step 3. Retrieve the html from all loaded pages.
I just installed Selenium Web Driver and tried it out.