Page 1 of 1

Click events are not being executed

PostPosted: Wed Nov 30, 2016 7:18 pm
by RNalder
Evening.

I need help on resolving this issue, where my click event waiting for complete page to load.

However after click, events are not getting executed.

Please help.

Re: Click events are not being executed

PostPosted: Thu Dec 01, 2016 12:25 pm
by eValid
RNalder wrote:Evening.

I need help on resolving this issue, where my click event waiting for complete page to load.

However after click, events are not getting executed.

Please help.


Thanks for posting RNalder.

This is a common problem.

You have the right DOM index, and the right type of event (a mouse click) to fire (same as saying, test action to take), but the page isn't ready.

And, of course, when you click on an DOM element that may not even exist, there's not telling what'll happen.

Probably the test will the ruined and you may see a FAIL as a false negative.

The easiest way to solve this kind of synchronization is to first synchronize on the SAME DOM element upon which you want to plant a click.

All you need to do then is to issue a command like this:

SyncOnElementProperty wid DOM-Name and DOM-Value [frame-path]

This is a very powerful synchronization loop, because it will wait until the named property appears without you having to even to know the index where it will appear.

The only thing you have to do is assure that the property name is unique...probably the DOM ID value will be the right thing.

The full details of this kind of synchronization are given here:

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

We know this to be a very reliable synchronization method.


-- eValid Support