lib/pagetience/platforms/page-object-gem.rb in pagetience-0.3.2 vs lib/pagetience/platforms/page-object-gem.rb in pagetience-0.4.0
- old
+ new
@@ -26,8 +26,12 @@
end
def underlying_element_for(sym)
@page_object_instance.send("#{sym}_element").element
end
+
+ def is_element_present?(sym)
+ @page_object_instance.send("#{sym}_element").visible?
+ end
end
end
end
\ No newline at end of file