lib/automation_helpers/drivers/v4/local.rb
def desired_capabilities
          ::Selenium::WebDriver::Remote::Capabilities.new.tap do |capabilities|
            if safari?
              capabilities['browserName'] = 'Safari Technology Preview'
              AutomationHelpers.logger.warn('Altering Browser Name request to alleviate Capybara failure with STP.')
            end
          end
        end
# This is required because Capybara and Safari aren't quite sure what the difference
# is between the two browsers. So to compensate an illegal browserName value is
# set that allows easy distinction between the two browsers
#
# NB: Whilst using Safari TP this is required.
This is required because Capybara and Safari aren't quite sure what the difference
is between the two browsers. So to compensate an illegal browserName value is
set that allows easy distinction between the two browsers

Whilst using Safari TP this is required.
This is required because Capybara and Safari aren ' t quite sure what the difference is between the two browsers . So to compensate an illegal browserName value is set that allows easy distinction between the two browsers Whilst using Safari TP this is required .
def desired_capabilities
          ::Selenium::WebDriver::Remote::Capabilities.new.tap do |capabilities|
            if safari?
              capabilities['browserName'] = 'Safari Technology Preview'
              AutomationHelpers.logger.warn('Altering Browser Name request to alleviate Capybara failure with STP.')
            end
          end
        end
def desired_capabilities :: Selenium :: WebDriver :: Remote :: Capabilities . new . tap do | capabilities | if safari? capabilities [ 'browserName' ] = 'Safari Technology Preview' AutomationHelpers . logger . warn ( 'Altering Browser Name request to alleviate Capybara failure with STP.' ) end end end
This is required because Capybara and Safari aren't quite sure what the difference
is between the two browsers.
This is required because Capybara and Safari aren ' t quite sure what the difference is between the two browsers .