From: Love U Ruby Date: 2013-02-06T15:30:15+09:00 Subject: Re: Not able get the label text incurred with element Joel Pearson wrote in post #1095429: > 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') I am using selenium-web driver at all. But your above line is with selenium one or watir web-driver at all? tell me please. Thanks -- Posted via http://www.ruby-forum.com/.