Have issues with element having the same name

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

Have issues with element having the same name

Postby MarthaH » Thu Nov 15, 2018 9:53 am

Morning.

I have the following situation:

In my target website, the elements are remembered through the attribute "name".

However, there are situations when there are several same elements on the page.

Is it possible to record an element by marking in which container it is located?

How?

Thanks
MarthaH
 
Posts: 1
Joined: Thu Nov 15, 2018 9:48 am

Re: Have issues with element having the same name

Postby eValid » Fri Nov 16, 2018 11:36 am

MarthaH wrote:Morning.

I have the following situation:

In my target website, the elements are remembered through the attribute "name".

However, there are situations when there are several same elements on the page.

Is it possible to record an element by marking in which container it is located?

How?

Thanks


Thanks for posting MarthaH.

There are two issues here: recording and locating DOM elements on the page.

During recording, eValid takes its cue from the location of the click on an element.

The resulting sourceIndex is taken from the DOM.

On playback, that's the element number to which the click event is directed, so there should be no problem.

You already know the sourceIndex so you don't have to disambiguate it.

On the other hand, if you are synthesizing or modifying recorded scripts (hacking recorded scripts is perfectly normal) then the ambiguity issue does often cause problems.

In eValid you may wish to look at the DOM contents with the PageMap:

http://e-valid.com/Products/Documentati ... p.gui.html

You may be able to locate some OTHER unique property value on the element you are interested in which cam be used in a script that searches for THAT property value.


-- 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