Trouble with a form webpage

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

Trouble with a form webpage

Postby FrancesB » Thu Feb 27, 2014 11:12 am

Hiya. I hope you can help me out with this problem.

I've got this simple form on a JavaScript/AJAX application where the user is supposed to select Gender = Male or Gender = Female.

My recorded script works everywhere else, but not on this particular element.

How do I get it to work?

Need help

Thanks
FrancesB
 
Posts: 1
Joined: Thu Feb 27, 2014 11:00 am

Re: Trouble with a form webpage

Postby eValid » Fri Feb 28, 2014 11:34 am

FrancesB wrote:Hiya. I hope you can help me out with this problem.

I've got this simple form on a JavaScript/AJAX application where the user is supposed to select Gender = Male or Gender = Female.

My recorded script works everywhere else, but not on this particular element.

How do I get it to work?

Need help

Thanks


Hey FrancesB.

Thanks for posting.

We have seen this kind of thing before with AJAX pages. Standard HTML FORM processing is OK, but when AJAX is involved it gets more complex.

The solution is to do something like this (you will have to fill in the correct syntax):

IndexSet 0
IndexFindElement 0 "some fixed point on the page"
IndexElementClick 0

This will send a click event to the browser face at the element where you have found the fixed point.

If this does not work you may want to try to replace the IndexElementClick, with an IndexFollowLink...No_NAV, which is an event in the browser that forces an interrogation of the server (same comment on command syntax):

IndexSet 0
IndexFindElement 0 "some fixed point on the page"
IndexFollowLink 0 "" NO_NAV


The NO_NAV is to suppress the normal navigational wait loops that eValid follows when there is a conventional FollowLink (i.e. processing an anchor tag element).

Hope this helps you overcome your problem.

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