WebPagetest Forums
How to Switch to new window through scripting - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Testing Tools/Services (/forumdisplay.php?fid=6)
+--- Thread: How to Switch to new window through scripting (/showthread.php?tid=16089)



How to Switch to new window through scripting - souvikshome10@gmail.com - 06-10-2020 08:42 PM

I am testing one application which has ms ad login. When I am hitting the URL one new window is popping up where I need to provide the credential. I am not sure how to switch to that window.
Can you please prove me any solution for this. I am using the below code which is getting failed.

logData 0

// put URL to navigate
navigate https://uipt.qa.dna.informa-labs.com
sleep 3
//Login Info
logData 1
setValue name=loginfmt <email>
submitForm id=idSIButton9
setValue name=passwd <password>
submitForm id=idSIButton9
submitForm id=idSIButton9


RE: How to Switch to new window through scripting - pmeenan - 06-11-2020 12:52 AM

You can't. WebPageTest block pop-ups and new windows and only supports single-window testing.