Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-07-02 Thread Jason
  ie.text_field(:after?, ie.label(:for, confirmPassword)).flash
 What's :for? It's not part of Watir. Have you tried by :name and/or :id? 

Fair point.  

I originally tried it from this page: 
http://wiki.openqa.org/display/WTR/Methods+supported+by+Element where it states:

 label  label tags (including for attribute)

Simply because it was the only available attribute for this field.  No ID, no 
NAME, no CLASS.  Nothing.

And it appeared to work, on it's own:

   ie.label(:for, confirmPassword).flash

certainly finds the label with this attribute.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-07-02 Thread Charley Baker

Well, you learn something new every day. I haven't worked with labels, :for
is a supported how for labels. Teach me to answer a question without trying
it out. :)   The :after? tag doesn't appear to apply to input elements,
buttons, text_fields, frames. Add a JIRA ticket if you'd like to see it
fixed and ideally also a failing unit test.

-Charley

On 7/2/07, Jason [EMAIL PROTECTED] wrote:


  ie.text_field(:after?, ie.label(:for, confirmPassword)).flash
 What's :for? It's not part of Watir. Have you tried by :name and/or :id?

Fair point.

I originally tried it from this page:
http://wiki.openqa.org/display/WTR/Methods+supported+by+Element where it
states:

 label  label tags (including for attribute)

Simply because it was the only available attribute for this field.  No ID,
no NAME, no CLASS.  Nothing.

And it appeared to work, on it's own:

   ie.label(:for, confirmPassword).flash

certainly finds the label with this attribute.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-06-28 Thread Jason
 ie.link(:after?, ie.image(:id, 'foo')).click

Does / can this apply to anything other than 'links' or 'images'?  i.e. I 
attempted this:

   ie.text_field(:after?, ie.label(:for, confirmPassword)).flash

Which didn't work.  Even though the individual ie.label(:for, 
confirmPassword) *does* work.

Asking too much here?  :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-06-28 Thread Charley Baker

What's :for? It's not part of Watir. Have you tried by :name and/or :id?

On 6/28/07, Jason [EMAIL PROTECTED] wrote:


 ie.link(:after?, ie.image(:id, 'foo')).click

Does / can this apply to anything other than 'links' or 'images'?  i.e. I
attempted this:

   ie.text_field(:after?, ie.label(:for, confirmPassword)).flash

Which didn't work.  Even though the individual ie.label(:for,
confirmPassword) *does* work.

Asking too much here?  :)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-25 Thread Željko Filipin

On 5/24/07, Bret Pettichord [EMAIL PROTECTED] wrote:


My mistake. Try this instead.
ie.link(:after?, ie.image(:id, 'foo')).click



It works now. This is so cool.

Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-24 Thread Bret Pettichord
Željko Filipin wrote:
 On 5/24/07, *Bret Pettichord* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 ie.link(:after, ie.image(:id, 'foo')).click


 Bret, this does not work for me. Am I doing something wrong?
My mistake. Try this instead.

ie.link(:after?, ie.image(:id, 'foo')).click



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-24 Thread SHALINI GUPTA

Thanks !! it works


On 5/24/07, Bret Pettichord [EMAIL PROTECTED] wrote:


Željko Filipin wrote:
 On 5/24/07, *Bret Pettichord* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 ie.link(:after, ie.image(:id, 'foo')).click


 Bret, this does not work for me. Am I doing something wrong?
My mistake. Try this instead.

ie.link(:after?, ie.image(:id, 'foo')).click



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-23 Thread Bret Pettichord
SHALINI GUPTA wrote:
 In my project i want to click a link that is variable.i.e user 
 dependent.But always it comes after an image...
 so is there any way to click a link just next to an image.
 please help.Its very urgent
There is an little known feature in 1.5 that supports this:

  ie.link(:after, ie.image(:id, 'foo')).click

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general