Forum Discussion
mesg2anil
15 years agoRegular Contributor
Hi Jared,
What I mean with my question is...
with the below code which I have written, I get an error; shown below
page
PageObj = .Process("iexplore").Page("*") PageObj.ToURL("") PageObj.Wait
tester
.iexplore.RunPageObj.document.all.Item("txtLoginId").Value = "UID" ==> In above function PageObj is set for page objects, which i'm using in this Sub to call the URL which is not taking. How to call that pageobj here solving the above error?PageObj.document.all.Item("txtPassword").Value = "Pwd"PageObj.document.all.Item("cmbLogin").Click
What I mean with my question is...
with the below code which I have written, I get an error; shown below
Function page
page
Set PageObj = Sys.Process("iexplore").Page("*") ==> before calling the URL, assigning the page objects to PageObj, it is erroring out
Call PageObj.ToURL("http://server1/login.asp")
Call PageObj.Wait
PageObj = .Process("iexplore").Page("*") PageObj.ToURL("") PageObj.Wait
End Function
sub tester
tester
Call TestedApps.iexplore.Run
PageObj.document.all.Item("txtLoginId").Value = "UID" ==> In above function PageObj is set for page objects, which i'm using in this Sub to call the URL which is not taking. How to call that pageobj here solving the above error?
PageObj.document.all.Item("txtPassword").Value = "Pwd"
PageObj.document.all.Item("cmbLogin").Click
.iexplore.RunPageObj.document.all.Item("txtLoginId").Value = "UID" ==> In above function PageObj is set for page objects, which i'm using in this Sub to call the URL which is not taking. How to call that pageobj here solving the above error?PageObj.document.all.Item("txtPassword").Value = "Pwd"PageObj.document.all.Item("cmbLogin").Click
End sub
Please suggest!!