From: Love U Ruby Date: 2013-02-26T21:17:05+09:00 Subject: Re: no element found error with selenium-webdriver I did check but for some of the files it is happening. Those are present in the webpage. But instead clicking throwing errors: here is the code: if download_field_name == "W-9 form :" if (download_link =~ /fileEntityId=\d+/) != nil #driver.find_element(:link, link_text).click puts @extension puts link_text begin driver.find_element(:link, link_text).click if [".docx",".doc",".pdf",".gif",".bmp",".tif",".jpeg",".jpg",".txt"].include?(@extension) rescue => e wbs.cells(rows,4).value = link_text raise end end end Yes, There is two spaces but How should I handle this on the page,as the webpage is read only. I am just downloading files which has the extensions match only. But above mentioned files are not only downloaded,whereas they present there. -- Posted via http://www.ruby-forum.com/.