This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27183 - Add the possibility to properly handle the Browsers Tabs in Selenium3
Summary: Add the possibility to properly handle the Browsers Tabs in Selenium3
Status: RESOLVED INVALID
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-28 12:17 UTC by David Gangel
Modified: 2014-10-28 17:58 UTC (History)
5 users (show)

See Also:


Attachments

Description David Gangel 2014-10-28 12:17:48 UTC
I would like to have the following functions to be implemented in Selenium3:
1. Ability to open any tabs in the opened browser by webdriver.
2. Ability to select any of the opened tabs from the opened browser by webdriver.
3. Ability to perform any of the actions on any of the tabs that could have a normal browser window.

The reason to asking this because sometimes you have a test execution flow which requires to do some actions a bit outside of the current context.
For an example:
You are shopping for something.
Your items are place in your basket.
You have the possibility to signup on the basket.
You receive a confirmation email. As a normal use case driven by a user it will open the same browsers window in a new tab.
Check some texts.
Close the Tab,
Continue with the checkout.

This is one simple example.

Raising the issue for the specification of:

https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html
Comment 1 Alexei Barantsev 2014-10-28 12:45:38 UTC
The same can be performed with windows instead of tabs.

To prove the need for tabs you have to provide a use case that can't be replaces with a similar scenario where all "tab" words are replaced with "window" word without losing the functionality or sense.
Comment 2 David Burns :automatedtester 2014-10-28 15:48:57 UTC
I believe this is already described in https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#widl-WebDriver-getWindowHandles-sequence-DOMString. Once we have the windowHandles then the UA just needs to switch it and they should be seemless.
Comment 3 Andreas Tolfsen 2014-10-28 17:58:35 UTC
Closing this for the reasons barancev and AutomatedTester gave.