01-03-2012, 06:57 PM
Hi,
Your expectation is to click on a link available in a page that takes you to the next page.
so, the object that you are accessing is link and the method you have to invoke is click
Step1: Set Mandatory properties for browser, page and link if not already set. (ex. for browser set as name, for page set as title and for link set as name)
Step2: Add all the three objects(browser, page and link) to object repository using Add Objects.
Step3: write code to invoke the the application like
"SystemUtil.run "http://www.google.co.in"
Step4: write code to click on the link
this should work.
Regards,
Prabhu K
Your expectation is to click on a link available in a page that takes you to the next page.
so, the object that you are accessing is link and the method you have to invoke is click
Step1: Set Mandatory properties for browser, page and link if not already set. (ex. for browser set as name, for page set as title and for link set as name)
Step2: Add all the three objects(browser, page and link) to object repository using Add Objects.
Step3: write code to invoke the the application like
"SystemUtil.run "http://www.google.co.in"
Step4: write code to click on the link
Code:
Browser("name:=Google").Page("title:=Google").link("name:=linkname").click
Regards,
Prabhu K