Class: Capybara::Selenium::ChromeNode
- Inherits:
-
Node
- Object
- Driver::Node
- Node
- Capybara::Selenium::ChromeNode
- Includes:
- Html5Drag
- Defined in:
- lib/capybara/selenium/nodes/chrome_node.rb
Instance Attribute Summary
Attributes inherited from Driver::Node
Instance Method Summary collapse
- #drag_to(element) ⇒ Object
-
#set_file(value) ⇒ Object
rubocop:disable Naming/AccessorMethodName.
Methods inherited from Node
#==, #[], #all_text, #click, #content_editable?, #disabled?, #double_click, #find_css, #find_xpath, #hover, #multiple?, #path, #readonly?, #right_click, #select_option, #selected?, #send_keys, #set, #style, #tag_name, #unselect_option, #value, #visible?, #visible_text
Methods inherited from Driver::Node
#==, #[], #all_text, #checked?, #click, #disabled?, #double_click, #hover, #initialize, #inspect, #multiple?, #path, #readonly?, #right_click, #select_option, #selected?, #send_keys, #set, #style, #tag_name, #trigger, #unselect_option, #value, #visible?, #visible_text
Constructor Details
This class inherits a constructor from Capybara::Driver::Node
Instance Method Details
#drag_to(element) ⇒ Object
18 19 20 21 22 |
# File 'lib/capybara/selenium/nodes/chrome_node.rb', line 18 def drag_to(element) return super unless html5_draggable? html5_drag_to(element) end |
#set_file(value) ⇒ Object
rubocop:disable Naming/AccessorMethodName
8 9 10 11 12 13 14 15 16 |
# File 'lib/capybara/selenium/nodes/chrome_node.rb', line 8 def set_file(value) # rubocop:disable Naming/AccessorMethodName super(value) rescue ::Selenium::WebDriver::Error::ExpectedError => err if err. =~ /File not found : .+\n.+/m raise ArgumentError, "Selenium < 3.14 with remote Chrome doesn't support multiple file upload" end raise end |