When we work on a web application, user clicked on a link/button etc and how the user traverse back to previous page.
Browser(objBrowser).back will not traverse back to previous page.
We can use SendKeys with backspace method.
Set oWShell=createobject("WScript.Shell")
oWShell.SendKeys "{BS}"
browser(objBrowser).Page(objPage).Link(objLink).Click
browser(objBrowser).Page(objPage).sync
browser(objBrowser).Back ' Here back works well with Firefox but not with IE
No comments:
Post a Comment