Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com
Web site opens new pages in new tab of browser
Hi all,
In case an web site opens the new web pages, after respective click, in new browser tabs, how Sahipro can be relocated to search web elements in the new tab?
BR,
Tagged:
Comments
Yes, you need to use the _selectWindow($prefix) in order to target the new window. When you use the controller on the new window, it will show a prefix. Use the prefix in the _selectWindow($prefix) to perform the step on the new window.
If you want to switch back to the base window, use _selectWindow() without any argument.
Please refer the link below for more information on Handling multiple windows.
https://resources.sahipro.com/docs/sahi-apis/popup-windows.html
Here is a video tutorial for the same.
https://www.youtube.com/watch?v=0dF4c8ZYzUE
If you face any issues, please send more details to support@sahipro.com.