About Article:
This article will describe how to resolve the following issue:
- The test step fails in cross-browser testing on Safari when opening a new tab.
Description:
When a website opens elements in a new tab, issues can arise in cross-browser testing, particularly with Safari.
This can cause the test to fail. Virtuoso cannot automatically switch to a new tab on certain browsers (e.g., Firefox 96.0 and Safari 15.3) as it does with Virtuoso Chrome.
Consequently, test execution will fail on these browsers.
Solution:
Add the following steps after the “Click” action that triggered the new tab to be created
store value ${window.safari !== undefined ? 0 : 1}
switch to tab $tabIndex
Comments
0 comments
Please sign in to leave a comment.