Posted: 15 Jun 2017 6:19 EDT Last activity: 19 Jun 2017 10:34 EDT
GetColne return NULL value
I have interrogated a div element with "Element Class Match Rule" and I want to use it to match its innertext dynamically. I see that there are more than one matching targets for that tag with a particular class name. But GetClones is returning NULL. I have set UseKeys=True. As I am new to Openspan, I am wondering if I have missed something else. Please guide me.
***Updated by moderator: Lochan to add Categories***
The null then indicates you are not matching then (assuming you have UseKeys enabled). You will need to troubleshoot your matching issue. Remember that all items in the hierarchy must match (parents, grandparents, etc...). If you have an ambiguous match upstream, then you may be attached to a prior page.
Our FilePublisher log file provides excellent details of the matching process when set to Verbose. If you don't want to examine those however, you can create a simple windows form with a ListBox and add a message to it whenever any of the controls you are interested in are created/destroyed. This may help you determine what you are attached to and which item in the hierarchy is not getting matched.