Page 1 of 1

Question on finding and following a link

PostPosted: Thu Oct 08, 2015 11:37 am
by RaymondY
Afternoon:

How does eValid handle the problem of finding and following a specific link when I don't know in advance which element the link sits on.

Thanks a bunch.

RaymondY.

Re: Question on finding and following a link

PostPosted: Fri Oct 09, 2015 1:48 pm
by eValid
RaymondY wrote:Afternoon:

How does eValid handle the problem of finding and following a specific link when I don't know in advance which element the link sits on.

Thanks a bunch.

RaymondY.


A very good question RaymondY.

The key is going to be to use some DOM commands to find the location of the needed URL, and then to to click on that element -- wherever it is.

First, here is a description of how eValid looks into your page:

http://www.e-valid.com/Products/Documen ... cture.html

So the first thing to do is extract the complete URL of the link that you want to find.

Then, you simply search the DOM, using indexFindElement, for the anchor tag that has THAT URL as its target.

Now you know the element number, and it's easy to fire an element click event on it using an IndexFollowLink command.

Here are the commands to that do the job:

http://www.e-valid.com/Products/Documen ... ple11.html

-- eValid Support