*edit: ‘at’ [email protected] (the ‘at sign’ is somewhat understood as mentioning an user). Formatting also returns an error. I am sorry for that. I don’t know how to solve this
I am new to ruby. I have a ‘for each’ loop for which I would like errors to be ignored so ot goes to the next item.
Yet, I must be missing something. Has somebody an idea?
'at’driver = Selenium::WebDriver.for :firefox
all_images = @driver.find_elements(tag_name: ‘img’)
all_images.each do |img|
RestClient.get img.attribute(‘src’) do |response, request, result|
if response.code ==404