This is about handling a new window at runtime. I have a script created and during creating the script opens a new tab and I am using these two steps:
1- Get Window handles (not sure what it does, I am sending the output to a variable but it returns all the open tabs of the window separated by comma eg [“CDWindows-12125122”,:CDwindows-234455"]
2-- Switch to window “2” - using index
The issue here is when I am creating the script and debugging the code it is working fine and I am able to switch to the third tab using index value 2 but at the time of execution it is opening a new window and my script fails. I tried to protect it from the browser level but did not work
Is there a way that the script can switch to a window based on the Title of the Window?
Thanks for your prompt reply,