lib/element.rb in gridium-0.1.3 vs lib/element.rb in gridium-0.1.4
- old
+ new
@@ -29,11 +29,10 @@
elements.each do |element|
if element.displayed?
@element = element;
end
end
-
}
else
wait.until { @element = @driver.find_element(@by, @locator); Log.debug("Finding element #{self}..."); @element.enabled? }
end
@@ -170,9 +169,13 @@
end
def text= text
element.clear
element.send_keys text
+ end
+
+ def value
+ element.attribute("value")
end
#
# Search for an element within this element
#
\ No newline at end of file