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
object= $driver.find_element(:id,"t3_wallet_button")
element_proc = Proc.new { object }
def is_present(element_proc)
begin
return true if element_proc.call
rescue
return false
end
end