vickywyy
15 years agoNew Contributor
TC8.6: EvaluateXPath does not work in FF5.0
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.
P.S my refernce thread is here: TC8.5: EvaluateXPath not working with IE
http://smartbear.com/forums/forum/post/?mode=singleThread&thread=86ccebf7-c3e9-4e83-bbc1-de4f4c0affc4