lib/page.rb in gridium-0.1.6 vs lib/page.rb in gridium-0.1.7

- old
+ new

@@ -94,11 +94,12 @@ def first(by, locator) Driver.driver.find_elements(by, locator).first end def click_link(linktext) - link = Driver.driver.find_element(:link, linktext) + link = Element.new("Clicking #{linktext} Link", :link_text, linktext) link.click + end def click_button(button_name) #The button maybe a link that looks like a button - we want to handle both button = Element.new("A #{button_name} button", :xpath, "//button[contains(text(), '#{button_name}')]") \ No newline at end of file