lib/element.rb in gridium-0.1.10 vs lib/element.rb in gridium-0.1.11
- old
+ new
@@ -178,18 +178,20 @@
def submit
element.submit
end
def text
- element.attribute("value")
+ #this is used for text based elements
+ element.text
end
def text=(text)
element.clear
element.send_keys(text)
end
def value
+ #this is used for inputs and forms
element.attribute("value")
end
#
# Search for an element within this element
\ No newline at end of file