lib/rufus/accessors/view.rb in rufus-0.3 vs lib/rufus/accessors/view.rb in rufus-0.4
- old
+ new
@@ -7,11 +7,10 @@
@locator = locator
end
def exists?
element = selenium.find(what)
- false
- true unless element.nil?
+ !element.nil?
end
def click
selenium.find(what).click
end
\ No newline at end of file