Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

More Help with XPath

$
0
0

I thought I had figured out this XPath thing but appararently not.

 

I'm trying to find the all div tags with the class "dxbButtonSys". A snippet of the browser inspect window is below.

 

I'm using the following code but can seem to find it. I've inspected the innerHTML to confirm the 'section' is contains the div.

 

What am I doing wrong???

 

    section = Sys.Browser().Page("*").Panel("primaryWrapper").Section("primaryContent").Nav("contentNav").Panel("mainNav").Panel("cplMainMenu").Panel("pcNavigation").Panel("pcNavigation_CC").Panel("pcNavigation_C3").Panel(0).Article(0);
    arr = section.EvaluateXPath("//div[@class='dxbButtonSys']", true);
    if(arr != null)
      return false;

 

xpath div.JPG


Viewing all articles
Browse latest Browse all 20990

Trending Articles