Forum Discussion
not sure how can I get the Xpath in IE.
but tired to use NativeWebObject.Find method but that is also not working
I tried
Sys.Process("iexplore").Page("*").Form("aspnetForm").Panel("divHeaderAndContent").Panel("contentWrapper").Panel(0).Panel(0).Panel(2).Panel(0).Panel(0).Panel(0).Panel(0).Panel(0).Table(0).Cell(2, 4).NativeWebObject.Find("tooltip","Edit","span")
but this is also not returning anything for some values it gives me an object which is empty thats probably because it was not able to fine that object.
and some times it gives me an object but the Inspect button is disabled in the evaluate window not sure why I am getting this.
Do I need to install some drivers or anything else .
And agian for query selector method I tried to run the example provided by smartbear which is
Sub Test Dim TestedPage, CSSSelector, res Browsers.Item(btChrome).Run("https://smartbear.com/") Set TestedPage = Sys.Browser("*").Page("https://smartbear.com/") CSSSelector = "div#main-nav" ' Call the function Set res=TestedPage.QuerySelector(CSSSelector) ' Check the result If Not res Is Nothing Then ' If the element was found, output its HTML code Log.Message(res.outerHTML) Else ' If the element was not found, post a warning to the log Log.Warning("The element was not found.") End If End Sub
but this is also not working and i am getting the message as element was not found mesasge.
here also the res is returning and object whose Inspect Button is disabled in the Evaluate window when I try to evaluate the res.
Also note, that QuerySelector() method applies to Page object.
So try something like:
Sys.Process("iexplore").Page("*").QuerySelector(".glyphicon")
Related Content
- 4 years agomehdisinger
Recent Discussions
- 3 days agovladd1