align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

pdx Selenium & Test Automation Users Group Message Board › Handling multiple windows with Java WebDriver

Handling multiple windows with Java WebDriver

Jon A.
user 61898832
Portland, OR
Post #: 13
To all:

I am starting to work on a new little experiment. I created a project that is an example of handling multiple windows during a Selenium2 WebDriver test. I have came up with my own rough idea but I am wondering if anyone has any suggestions on how I might be able to improve on this method?


To suggest a change, you could fork my code on GitHub and then I will be able to see what you did to improve on it. You could also reply to this thread with suggestions or criticisms.

I am just looking for more ideas or for things I may have overlooked.

Jon A.
user 61898832
Portland, OR
Post #: 16
Finally got Multi-threaded window handling working in a Gradle project example with Firefox RemoteWebDriver . Just run my project here:­

In my project there is a 'runSkipSuite" task that actually runs the multi-threaded example. There is another task called 'runTestSuite" that still runs sequential but I am trying to fix it.
Jon A.
user 61898832
Portland, OR
Post #: 17
I moved this project to this new link address:­

Also, the project is refactored into 2 sub-projects:
1. Google - tests multiple windows running from JUnit parameterized .CSV file input.
2. ParallelWebdriver - tests multiple webdriver instances, each having 4 separate window handles.
Powered by mvnForum

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy