From: "Mattias A." Date: 2012-12-13T04:51:18+09:00 Subject: Re: Find element test with webdriver Thanks for your answer Joel. I really want to solve this with Selenium Webdriver even if watir is better. (cannot give up now :)) Your array tips dosent work when the element not exists or i maybe I do something wrong? Expected output below would be "No", but the test fails and will not complete the run. It complains about the row array = @driver.find_element(:id, "gbqfqX") def by_id_array array = [] array = @driver.find_element(:id, "gbqfqX") puts 'No' if array.size == 0 end -- Posted via http://www.ruby-forum.com/.