Sometimes you have a web test where you need to test the contents of two browser tabs at the same time in Google Chrome. For example you may have an application which opens up a second browser tab and you want to test that changes in the second tab show up correctly in the first tab. This article describes how to perform this kind of testing.
The attached test script has 2 utility functions in the .user.js file that should be used:
FindOrCreateChromeTabForObject and FindOrCreateChromeTabForTitle
-
They are utility functions to enable cross-tab playback.
-
The expected usage is the following:
- Suppose we have 2 objects 'inputButton1' belonging to one page
and
'inputButton2' belonging to another.
- We want to have those buttons
open on two tabs and switch between those tabs back and forth.
- In this case the solution is to call those functions passing
pending object id, i.e. just before the script is about to start working with another
tab.
Examples
FindOrCreateChromeTabForObject('inputButton2');
SeS('inputButton2').DoClick();
// ... Do some other work with tab 2 here...
FindOrCreateChromeTabForObject('inputButton1');
SeS('inputButton1').DoClick();
// ... Do some other work with tab 1 here...
FindOrCreateChromeTabForObject('inputButton2');
SeS('inputButton2').DoClick();
Selected files will be attached to any email sent on saving ticket.
file selected
files selected
()
Delete Selected
Uploading
…
There was an error.
Try again?
Save to upload the selected file(s)
Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885