Index Element Click Problem

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

Index Element Click Problem

Postby Moe369 » Mon Sep 22, 2008 11:13 am

I've been playing around with the motion commands and they work pretty
well, except for drop down boxes.
I'm not saying it doesn't work, just that I didn't get it to work.
This is what I did:

IndexSet 0
IndexFindElement 0 DOWN "id" "tam" "number:0>>number:0"

IndexElementClick 0 "number:0>>number:0"
IndexMove 3
IndexElementClick 0 "number:0>>number:0"


When I look at the log, it finds the element (on the correct index) and
moves three idexes up and clicks on the element (with the correct index)
but nothing happens.

I looked at your gmail example and it corresponds to what I did.

However, could you, based on that example, show me how to add a star to
that e-mail instead of deleting it. For that, you need to use the drop
down box instead of the delete button.
Moe369
 
Posts: 19
Joined: Thu May 29, 2008 3:50 pm

Re: Index Element Click Problem

Postby Dom » Mon Sep 22, 2008 11:15 am

Thanks for posting.

On the above, without seeing the page or having any detail on
what kind of drop down box it is difficult to figure out what
to do next.

But I think that if an IndexElementClick isn't accepted by the
page, that implies that the particular piece has not been
"selected"...

Simpler objects are "pre-selected" but in a list, where you may
be able to select several things, you have to make sure that
the event you send is received by the right part of the page.

What you probably need is an IndexElementEvent command:

http://www.e-Valid.com/Products/Documen ... event.html

This command lets you simulate ANY possible playback event.
Sorry that it is so complicated.
eValid Tech Support Team
Dom
 
Posts: 16
Joined: Tue Jan 01, 2008 12:48 pm


Return to AJAX Applications & DOM Processing

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