From: Love U Ruby Date: 2013-02-06T17:08:19+09:00 Subject: Re: Not able get the label text incurred with element Hans Mackowiak wrote in post #1095463: > why not try it yourself? or read what others say: > > "Extracting the div's > text didn't take the newlines so I had to split by spaces." I don't have watir-web driver installed in my PC. Now so I am trying to understand it by logic. name_array= [John,Ram,Smith,Paul] If it really this,then I think my one should also work for me: driver.find_elements(:xpath,"//div[contains(@id,'filtersetedit_fieldNames')]/input").each do |x| puts x.text.strip end -- Posted via http://www.ruby-forum.com/.