Optionalstep: somtime you get add on page and other time tou wont then ,you can add optionstep before the code like.
optionalstep.Browser("Mozilla").Navigate "https://www.facebook.com/"
To get the property of runtime object:
print Browser("Browser_mozilla").Page("Page").WebEdit("SearchBox").GetRoProperty("value")
' read the runtime properties
'identofication property
print Browser("Browser_mozilla").Page("Page").WebEdit("SearchBox").GetRoProperty("value")
'native property
print Browser("Browser_mozilla").Page("Page").WebEdit("SearchBox").Object.baseURI
---------------------------------------------------------------------------
text= Browser("BBC browser").Page("BBC - page").WebElement("Welcomdate").GetROProperty ("innertext")
print text
welcomeMessage=left(text,18)
print welcomeMessage
welcome="Thursday, 19 October"
Bbcdate= right(text,20)
print Bbcdate
print welcome
If Bbcdate=welcome Then
print "pass"
else
msgbox "fail"
End If
msgbox Browser("BBC browser").Page("BBC - page").WebElement("Welcomdate").GetTOProperty("innertext")
msgbox Browser("Browser").Page("page-TOI").WebElement("CurrentDateTime").GetTOProperty("innertext")
-----------------------------------------------------------------------------------------------------------
No comments:
Post a Comment