abishekhari007
5 years agoContributor
Reading list data in an xpath using TC
Can you help me with how to read the list data from an xpath //*[@id="panelbar"] present in a webpage and store it in array/list using testcomplete, there is data in //*[@id="panelbar"]/li[1], //*[@...
- 5 years ago
Hi,
As per https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms256086(v=vs.100), I think that XPath should be something like this:
//*[@id="panelbar"]/li
However, as Marsha wrote, unless you are considering cross-platform testing, search methods provided by TestComplete (FindAllChildren(), etc.) are much more preferable.