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

Applying eValid to AJAX applications that require advanced DOM-based methods.

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

Postby RDrake » Mon Mar 04, 2019 9:36 am

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
RDrake
 
Posts: 2
Joined: Thu Feb 28, 2019 11:19 am

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

Postby eValid » Tue Mar 05, 2019 1:40 pm

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
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons