On 3/15/06, Pekka Määttä <[EMAIL PROTECTED]> wrote:
Anyone? I got the idea of sending tab key presses to ie and checking
where the focus is, but it's kinda hacky..
-PM
>Message: 3
>Date: Tue, 07 Mar 2006 10:32:46 +0200
>From: Pekka M??tt? < [EMAIL PROTECTED]>
>Subject: [Wtr-general] Finding out the order of input elements?
>To: [email protected]
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Hi,
>
>I'm new to Watir (and Ruby), so this may be a stupid question.... tried
>searching around a bit, but with little success. So here goes:
>
>How do I find out if an input element precedes another or not?
>
>There does not seem to be a method for accessing all html inputs on page
>at once, nor does not seem to be an index attribute or such in input
>objects. So I can get ordered lists of text fields, selects and buttons,
>but have no way of knowing if, for example, if a certain text field
>element is defined before a certain button on a page. Or do I?
>
>TY in advance,
>
>-PM
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
