From: Joel Pearson Date: 2013-02-06T08:59:42+09:00 Subject: Re: Not able get the label text incurred with element The text is in the div, not linked to the checkboxes. Looks like poorly organised html. If you know the value you want, then you could do this (examples given in watir-webdriver, which you REALLY need to start using for the sake of your own sanity): driver.checkbox(:value => '9556609').set If you have to work out which of the div's text rows goes with which checkbox you'd probably have to do it via indices. Extracting the div's text didn't take the newlines so I had to split by spaces. my_div = driver.div(:id => 'filtersetedit_fieldNames') name_array = my_div.text.split name_array.each_with_index do |name, idx| puts "name: #{name} value: #{my_div.checkbox(:index, idx).value}" end output: name: John value: 5418630 name: Ram value: 6360899 name: Smith value: 9556609 name: Paul value: 20156687 Once you have the names and corresponding values you can set whichever one you like. And slap the person who wrote that html. -- Posted via http://www.ruby-forum.com/.