How to use switchTo method in Siesta to handle multiple browser in Siesta.
I found "switchTo" from Siesta API, but for the argument, I tried my new browser URL or title, but none of them was working. Any suggestion? Any code example?
Thank you!
Support Forum
"switchTo" requires the popup handle, not the url or title: https://www.bryntum.com/docs/siesta/#!/ ... d-switchTo
Popup handle is the value returned from the "window.open()", it is basically a "window" object of the popup.
Popup handle is the value returned from the "window.open()", it is basically a "window" object of the popup.
Read the API documentation
Actually seems it does accept url and title. Please provide more details.
Read the API documentation
Hey, I have attached my test step,
so, I want to verify the content in the preview window,
so how do I move from the original window to the new window and verify the content?
Thank you!
so, I want to verify the content in the preview window,
so how do I move from the original window to the new window and verify the content?
Thank you!
- Attachments
-
- testStep.docx
- (231.44 KiB) Downloaded 212 times
Hi,
Still need more details. What is the url of the popup? How exactly you call the "switchTo"? And what exactly does not work after you call "switchTo"?
Still need more details. What is the url of the popup? How exactly you call the "switchTo"? And what exactly does not work after you call "switchTo"?
Read the API documentation