Reuse same browser window

14 views
Skip to first unread message

Eric Thomson

unread,
May 22, 2015, 3:32:45 PM5/22/15
to test...@googlegroups.com
When writing or debugging tests (specs) I would like to use the same browser window that my first test run opened for subsequent runs. I would also like to manually manipulate the the website to get it to an exact state before executing my test spec.
  1.  I think that I need to capture the window_handle in the first run and then capture it's value in the log.
  2. After the first spec ends, I may need to manually intervene to get the website to the right page and state.
  3. Then I want to launch the next spec to target the same window_handle as before.

Can it be done?

Zhimin

unread,
May 22, 2015, 10:38:29 PM5/22/15
to test...@googlegroups.com, eric...@gmail.com
Yes, this feature is available in TestWise Pro.  See a recipe in Selenium WebDriver Recipes in Ruby: Run selected test steps against current browser (Chapter 14).
Reply all
Reply to author
Forward
0 new messages