class Capybara::Selenium::SafariNode
def select_option
def select_option # To optimize to only one check and then click selected_or_disabled = driver.execute_script(<<~JS, self) arguments[0].closest('select').scrollIntoView(); return arguments[0].matches(':disabled, select:disabled *, :checked'); JS click unless selected_or_disabled end