#drop(*args) ⇒ Object

#select_option ⇒ Object

56
57
58
59
60
61
62

# File 'lib/capybara/selenium/nodes/chrome_node.rb', line 56defselect_option# To optimize to only one check and then click
selected_or_disabled=driver.evaluate_script(<<~JS,self) arguments[0].matches(':disabled, select:disabled *, :checked')
JS
clickunlessselected_or_disabledend

#visible? ⇒ Boolean

Returns:

(Boolean)

64
65
66
67
68
69
70
71
72
73
74

# File 'lib/capybara/selenium/nodes/chrome_node.rb', line 64defvisible?returnsuperunlessnative_displayed?beginbridge.send(:execute,:is_element_displayed,id:native.ref)rescueSelenium::WebDriver::Error::UnknownCommandError# If the is_element_displayed command is unknown, no point in trying again
driver.options[:native_displayed]=falsesuperendend