Class: Selenium::WebDriver::Element
Instance Method Summary
collapse
#find, #find_text, #finds, #finds_text, #has?, #has_text?, #to_html
Instance Method Details
#click(n = 20) ⇒ Object
66
67
68
69
70
71
72
73
74
|
# File 'lib/smart_driver.rb', line 66
def click(n=20)
origin_click()
if block_given?
n.times do
break if yield()
sleep 0.5
end
end
end
|
#fill(text) ⇒ Object
76
77
78
79
80
|
# File 'lib/smart_driver.rb', line 76
def fill(text)
$focus = self
logging :info, "fill '#{text}'"
send_key(text)
end
|
#origin_click ⇒ Object
64
|
# File 'lib/smart_driver.rb', line 64
alias :origin_click :click
|