>From Page Source:
All
choice 1
choice 2
choice 3
choice 4
choice 5
>From Firebug:
choice 1
+
+
+
+
--
Before po
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.
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
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
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