robotframework / robotframework/SeleniumLibrary
Add functionality provided by new Selenium 4 create and/or switch to new window or tab
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
As per the Selenium documentation [1], "Selenium 4 provides a new api NewWindow which creates a new tab (or) new window and automatically switches to it.". This is compared to the previous behavior where "[c]licking a link which opens in a new window [would] focus the new window or tab on screen, but WebDriver will not know which window the Operating System considers active. To work with the new window you will need to switch to it. If you have only two tabs or windows open, and you know which window you start with, by the process of elimination you can loop over both windows or tabs that WebDriver can see, and switch to the one which is not the original."
References:
- Working with windows and tabs
- Selenium WebDriver 4: New Window, New Tab & Screenshots - TestProject Blog post
- Selenium 4 - New Windows and Tab Utilities - SauceLabs Blog post
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Selenium 4 Working with windows and tabs documentation linked in the issue, then compare the NewWindow API with SeleniumLibrary's existing window and tab functionality. Done means SeleniumLibrary exposes equivalent create-and-switch behavior for a new window or tab and verifies it with appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100