Forum Discussion
vickywyy
15 years agoNew Contributor
Hi,
I have also tried these pieces of code, but it seemed it did not work with TC8.6 and FF5.0.
the result is Object Not Found.
Sub VerifyXpath()
Dim objBrowser, objPage, objWebObject
set objBrowser = Sys.Process("firefox")
'set objBrowser = Sys.Process("iexplore",1)
set objPage = objBrowser.Page(http://www.aa.com/*)
objWebObject = objPage.EvaluateXPath("//input[@id='flightSearchForm.tripType.oneWay']")
if Not IsNull(objWebObject) then
objWebObject(0).Click
else
log.Message "Object Not Found"
end if
End Sub
but it worked with TC8.6 and IE7.
could you help to have a check!
thanks a lot in advance.
I have also tried these pieces of code, but it seemed it did not work with TC8.6 and FF5.0.
the result is Object Not Found.
Sub VerifyXpath()
Dim objBrowser, objPage, objWebObject
set objBrowser = Sys.Process("firefox")
'set objBrowser = Sys.Process("iexplore",1)
set objPage = objBrowser.Page(http://www.aa.com/*)
objWebObject = objPage.EvaluateXPath("//input[@id='flightSearchForm.tripType.oneWay']")
if Not IsNull(objWebObject) then
objWebObject(0).Click
else
log.Message "Object Not Found"
end if
End Sub
but it worked with TC8.6 and IE7.
could you help to have a check!
thanks a lot in advance.