I do have a below `HTML`:

    <div id="filtersetedit_fieldNames" title="Please first select a list
to filter!">

    <input value="5418630" name="NameID" type="checkbox"> John
    <input value="6360899" name="NameID" type="checkbox"> Ram
    <input value="9556609" name="NameID" type="checkbox"> Smith
    <input value="20156687" name="NameID" type="checkbox"> Paul

    </div>

Now I have to check-box using selenium-webdriver. But I tried to get
extract the values as `John,Ram etc`.But my code didn't worked at all.

***`CODE`***

    driver.find_elements(:xpath,"//div[contains(@id,'filtersetedit_fieldNames')]/input")
do |x|

        puts x.text.strip

    end

But none of the values are printed. Any idea how to get it done.

-- 
Posted via http://www.ruby-forum.com/.