transfer control to new window
Hello,
I am using Python functions as my container language and this contains javascript Statements which are executed when a "Run Script Routine" is called from a keyword test. The Problem i am facing is as floowos:
I click a button on page A, which opens up a new window(Page B). How can i transfer control from page A to page B so that all the "Run Script routine" after the button click are executed on page B and not Page A.
Please find the attached ScreenShot of my function that i am using to click. Any help would be appreciated.
Hi,
To transfer the control you must reference the relevant page.
So, assuming that page B has URL like this: http://www.yoursite.com/app/approvePage.html
you must replace
Sys.Browser("*").Page("*").<...>
with something like
Sys.Browser("*").Page("*/approvePage*").<...>