[wtr-general] Re: Selecting an element based from another known element's position

2012-02-10 Thread RJ
>From Page Source: All choice 1 choice 2 choice 3 choice 4 choice 5 >From Firebug: choice 1 + + + + -- Before po

[wtr-general] Re: Selecting an element based from another known element's position

2012-02-10 Thread RJ
Unfortunately parent has multiple radiobox each followed by its own label My code looks like: selected_checkbox 'choice 1' if foo selected_checkbox 'choice 2' if bar ... selected_checkbox 'choice 18' if foo.bar def selected_checkbox selection browser.label(:text => selection).radio_on_its_left.

Re: [wtr-general] Selecting an element based from another known element's position

2012-02-10 Thread Željko Filipin
On Fri, Feb 10, 2012 at 2:08 PM, RJ wrote: > Selecting an element based from another known element's position. Show us the HTML. If both elements have the same parent, then it is easy. Something like this: browser.label.parent.radio Željko -- watir.com/book - author -- Before posting, pleas

[wtr-general] Re: watir 3.0.rc2 breaks style.color

2012-02-10 Thread hillary
that worked. Thanks. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Re: watir 3.0.rc2 breaks style.color

2012-02-10 Thread Ivan Kabluchkov
Sorry it is my mistake Try this browser.text_field(:id, 'text').document.invoke("currentstyle").color.should == '#444' -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general