From: Robert Klemme Date: 2013-02-07T23:58:19+09:00 Subject: Re: how to skip lines whenever there is an error? On Thu, Feb 7, 2013 at 3:34 PM, Love U Ruby wrote: > Love U Ruby wrote in post #1095742: >> Hi, >> >> I have the code below : > > begin > > option.select_by(:text, value) > wbs.cells(rows,9).value = "Done" <~~~~ Found the resolutions here > > rescue Selenium::WebDriver::Error::NoSuchElementError > > end > > #print "nothing" > > rows = rows + 1 > count_dropdown = count_dropdown - 1 And now where exactly did I miss your point? This is what I suggested. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/