Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
Alice P_ Immanuel Absent Member.
Absent Member.

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?


Other details

Silk test 17.5

Browser: Chrome V. 56



Tags (2)
1 Reply
Micro Focus Expert
Micro Focus Expert

RE: How to handle popup in Silk 4J

Hi Alice,

You should be able to find the popup window url as follows:

String popupUrl = desktop.<BrowserWindow>find("//BrowserWindow[2]").getUrl();

I hope that helps.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.