Forum Discussion
TanyaYatskovska
SmartBear Alumni (Retired)
Hi Loki,
To search through the HTML content, you can use the EvaluateXPath or FindChildByXPath method. Refer to the "Finding Web Objects Using XPath Expressions" ( http://smartbear.com/viewarticle/62117/ ) help topic for details. For example, here is the code to identify the expanded block:
'VBScript arr = page.EvaluateXPath("//DIV[contains(@title, 'Click to Collapse')]") ' Check the result If Not IsNull(arr) Then ' The block was expanded 'Perform some clicks Else 'The block wasn’t expanded End If
lokithorshield
10 years agoContributor
Hi Tanya, yes I am able to do that already - but here the oddity is that one of them should be found if click action is done. else other should be found. - Among [Click to collapse] and [Click to Expand].
However - I am able to find both xpaths after page initial load. So My verification, if, Only one of the panel is available during initial default page load, actually fails. [Rather incorrectly passes]
Thanks,
Mahesh
Related Content
- 3 months agoD0UG
- 5 years agoSiwarSayahi