Class: Selenium::WebDriver::Element

Inherits:
Object
  • Object
show all
Includes:
Kirchhoff::CommonInterface
Defined in:
lib/kirchhoff.rb

Instance Method Summary collapse

Methods included from Kirchhoff::CommonInterface

#find, #find_text, #multi_find, #multi_find_text, #to_nokogiri

Instance Method Details

#fill(text) ⇒ Object



86
87
88
89
90
# File 'lib/kirchhoff.rb', line 86

def fill(text)
  $focus = self
  send_key(text)
  Kirchhoff::Logger.call :info, "fill '#{text}'"
end

#to_htmlObject



92
93
94
# File 'lib/kirchhoff.rb', line 92

def to_html
  attribute "outerHTML"
end

#waiterObject



104
105
106
# File 'lib/kirchhoff.rb', line 104

def waiter
  Selenium::WebDriver::Wait.new(timeout: 5)
end