Page 1 of 1

Unable find the sourceindex onthe page. Where to look next?

PostPosted: Mon Mar 04, 2019 9:36 am
by RDrake
Morning.

Thanks for answering my previous forum post.

Follow up to the prior question:

What if I don't know the specific "sourceIndex" in the page?

How do I find it.

Thanks

Re: Unable find the sourceindex onthe page. Where to look ne

PostPosted: Tue Mar 05, 2019 1:40 pm
by eValid
RDrake wrote:Morning.

Thanks for answering my previous forum post.

Follow up to the prior question:

What if I don't know the specific "sourceIndex" in the page?

How do I find it.

Thanks


Interesting question RDrake.

OK, the facts you have are that you know there is [supposed to be] some page element that has a property name which has a particular value.

Here you have to use either IndexFindElement of IndexFindElementEx to locate the index.

Here is an example of this:

http://e-valid.com/Products/Documentati ... ple12.html

Note that this will find the FIRST-OCCURING instance of an index which possesses a property with the specific name taking on that particular value.

If that is not unique then your search is more complicated.

Our experience is that you can almost always find a property value that, when found, yields a unique "sourceIndex".

In well behaved pages this, in the worst case, is the "ID tab"...

Hope this helps.


-- eValid Support