Class: Selenium::WebDriver::Element
Instance Method Summary
collapse
#find, #find_text, #finds, #finds_text, #has?, #has_text?, #to_html
Instance Method Details
#click(t = 10, &block) ⇒ Object
70
71
72
73
74
75
76
|
# File 'lib/smart_driver.rb', line 70
def click(t=10, &block)
origin_click()
if block_given?
wait = Selenium::WebDriver::Wait.new(timeout: t)
wait.until(&block)
end
end
|
#fill(text) ⇒ Object
78
79
80
81
82
|
# File 'lib/smart_driver.rb', line 78
def fill(text)
$focus = self
logging :info, "fill '#{text}'"
send_key(text)
end
|
#origin_click ⇒ Object
68
|
# File 'lib/smart_driver.rb', line 68
alias :origin_click :click
|