Page Object

Web Page Object

Methods & Properties that we can apply on Page object

SystemUtil.Run “C:Program FilesInternet ExplorerIEXPLORE.EXE”,””


‘Navigate Method:
Browser(“CreationTime:=0”).Navigate “”
‘Exist Property 
If Browser(“title:=Google”).Page(“url:=”).Exist(2) Then
Msgbox “Google page  Launched Successfully”
End If
‘ChildObjects method 
Set obj = description.Create
Set Objects = Browser(“title:=Google”).Page(“url:=”).ChildObjects(obj)
Msgbox Objects.count
‘CheckProperty method for “title” property of Google Page
Browser(“title:=Google”).Page(“url:=”).CheckProperty “title”,”Google”
‘GetROProperty method for “openurl” property of Google Page
x =Browser(“title:=Google”).Page(“url:=”).GetROProperty (“title”)
Msgbox x
‘GetToProperties method on Google Page
Set Gprops= Browser(“title:=Google”).Page(“url:=”).GetTOProperties()Msgbox Gprops.count
For i=0 to Gprops.Count-1
Gpropsname = Gprops(i).Name
Gpropsvalue = Gprops(i).value
Msgbox Gpropsname & “=” & Gpropsvalue
‘Close method



This site uses Akismet to reduce spam. Learn how your comment data is processed.