Closed daiphamn closed 3 months ago
[Find*]
attributes don't work with ControlList
, they work with ItemsControl
defining the container control. To specify an XPath for ControlList
item, you need to use [ControlDefinition]
attribute like below:
[ControlDefinition("*[@class='tbody']//*[@role='row']/div[1]")]
public ControlList<Text<_>, _> Names { get; private set; }
Please note that preceding //
should not be added to XPath.
Thank you. Let me try
It worked! Thanks
You are welcome.
We have found the first column list in a table by the Xpath below.
When I called Names.Count.Value, I expected it to be 20, but instead I received 500. Each of these contains all the webpage (HTML) text.