Hi,
I want to check if a element NOT exist on my screen and if it is on the screen I would like to raise an Error. I was trying us the code below but this raises me an
(Selenium::WebDriver::Error::NoSuchElementError)
object= $driver.find_element(:id,"t3_wallet_button")
if (object != nil)
puts 'ERROR'
# MinitestWorld.assert(false, "ERROR MESSAGE")
end
if (object == nil)
puts 'NO ERROR'
end
could someone help me on this please?
Thanks!