Module: Selenium::WebDriver::Elements
- Defined in:
- lib/selenium/webdriver/elements/form.rb,
lib/selenium/webdriver/elements/button.rb,
lib/selenium/webdriver/elements/select.rb,
lib/selenium/webdriver/elements/browser.rb,
lib/selenium/webdriver/elements/element.rb,
lib/selenium/webdriver/elements/textbox.rb,
lib/selenium/webdriver/elements/checkbox.rb,
lib/selenium/webdriver/elements/file_chooser.rb
Defined Under Namespace
Classes: Browser, Button, Checkbox, Element, FileChooser, Form, Select, Textbox
Instance Method Summary
collapse
Instance Method Details
#populate(data) ⇒ Object
66
67
68
69
70
|
# File 'lib/selenium/webdriver/elements/select.rb', line 66
def populate data
if data != nil
select_by_value data
end
end
|
#send_keys(*args) ⇒ Object
61
62
63
64
65
66
67
68
69
|
# File 'lib/selenium/webdriver/elements/element.rb', line 61
def send_keys *args
if @browser.browser == :chrome
@element.click
end
@element.send_keys *args
end
|