How to handle popup in Silk 4J
I have a scenario, on click event a new browser popup appears, I have to validate the URL of the popup and bring the control back to parent browser.
I am unable to record that as the control is not going to that child window. Can someone please guide me and help me to script this?
Silk test 17.5
Browser: Chrome V. 56
RE: How to handle popup in Silk 4J
You should be able to find the popup window url as follows:
String popupUrl = desktop.<BrowserWindow>find("//BrowserWindow").getUrl();
I hope that helps.