Forum Discussion
Anonymous
15 years agoHi,
I have tried your code in IE 9, and it worked fine. I have modified it a bit. Please try using the following code:
Sub VerifyXpath()
Dim objBrowser, objPage, objWebObject
'set objBrowser = Sys.Process("firefox")
set objBrowser = Sys.Process("iexplore")
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
Does this work?