javascript - Selenium operation in different tab (Python or C++) -


I have an issue with selenium I have a scenario:

  1. User opens a browser via script:

      driver = webdriver.firefox () driver.get ("some_startpage")  
  2. I want to change an element on the page in another tab, but my webdriver The focus is on the first tab.

    I've tried driver.getWindowHandles () to change the focus of the WebDrive, but it only shows a hingle (in the main window), and I switch the reference on the second tab can not do.

    • webdriver.tittle shows the title of the second tab and
    • webdriver.current_url displays the first tab's URL

    But in general it is normal I have read that Selenium does not support tabs in the browser.

    My question:

    • Is there any work to work on elements on the other side (Meribi JS?) (Third, fourth ...) tab in browser?
    • I do not want to open a new browser window, and humans should manually open tabs, it can not be done through selenium.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -