You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
Selenium version: 2.19.1-py2.6
OS: W7 64
Browser: Firefox
Browser version: 10.0.1
Hi
As in the summary, it seems that the selenium python bindings do not report a handle
for every tab opened, but only for every window.
As far as i know, this problem does not exist in ruby bindings and java bindings.
the following code should reproduce the issue
from selenium import webdriver
import time
def main():
profile = webdriver.FirefoxProfile()
profile.set_preference("browser.link.open_newwindow", 3)
profile.update_preferences()
driver = webdriver.Firefox( firefox_profile=profile )
# driver.get("http://www.ibm.com")
driver.execute_script("window.open('http://www.google.com');")
driver.execute_script("window.open('http://www.yahoo.com');")
driver.execute_script("window.open('http://www.oracle.com');")
time.sleep(10)
print driver.window_handles
print driver.current_window_handle
raw_input("Press Enter to continue...")
driver.quit()
if __name__ == "__main__":
main()
Reported by paoletto on 2012-02-15 20:27:30
The text was updated successfully, but these errors were encountered:
This is a known issue and unfortunately we will not be supporting tabs.
We force Firefox to open all links in a new window. We can't access the tabs to know
when to switch. When we move to marionette (Mozilla project) in the future we should
be able to do this but for now it is working as intended
Reported by david.burns@theautomatedtester.co.uk on 2012-04-16 23:45:11
Originally reported on Google Code with ID 3380
Reported by
paoletto
on 2012-02-15 20:27:30The text was updated successfully, but these errors were encountered: