From: Love U Ruby Date: 2013-02-08T06:27:37+09:00 Subject: Re: how to skip lines whenever there is an error? Another construct here: begin option.select_by(:text, value) rescue Selenium::WebDriver::Error::NoSuchElementError p "do nothing" else wbs.cells(rows,9).value = "Done" <~~~~ Found the resolutions here end #print "nothing" rows = rows + 1 count_dropdown = count_dropdown - 1 -- Posted via http://www.ruby-forum.com/.