Question on finding and following a link

Discussion of the technology underlying the eValid solution.

Question on finding and following a link

Postby RaymondY » Thu Oct 08, 2015 11:37 am

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.
RaymondY
 
Posts: 1
Joined: Thu Oct 08, 2015 11:33 am

Re: Question on finding and following a link

Postby eValid » Fri Oct 09, 2015 1:48 pm

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


Return to Technology

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