Forum Discussion

minhterry's avatar
minhterry
Contributor
10 years ago

How to wait new TAB load finish ?

Hello,



When I click on a link, it open new TAB on FIREFOX, i would like to wait the PAGE on that NEW TAB load done. So can anyone help me some script to solve that issue.



--

Regards,

1 Reply

  • Hi Minh,

    Assuming the tab is opening as the current tab, then you could try the following code:



    Set page = Sys.Browser(gBrowserToUse).Page("*")

    page.Wait(60000)



    If the tab is not the current tab, then replace the asterix in Page("*") to the URL of the tab.