Page 1 of 1

Have issues with element having the same name

PostPosted: Thu Nov 15, 2018 9:53 am
by MarthaH
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

Re: Have issues with element having the same name

PostPosted: Fri Nov 16, 2018 11:36 am
by eValid
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