Use Microsoft Edge dev channel

This commit is contained in:
Thomas Walpole 2019-06-16 10:10:37 -07:00
parent 2f2d822471
commit b8cf5da33f
2 changed files with 7 additions and 3 deletions

View File

@ -117,7 +117,7 @@ matrix:
addons:
homebrew:
taps: homebrew/cask-versions
casks: microsoft-edge-canary
casks: microsoft-edge-dev
before_install:
- wget https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver/76.0.168.0/edgedriver_mac64.zip
- unzip edgedriver_mac64.zip -d /usr/local/bin

View File

@ -6,8 +6,12 @@ require 'shared_selenium_session'
require 'shared_selenium_node'
require 'rspec/shared_spec_matchers'
Selenium::WebDriver::Edge::Service.driver_path = '/usr/local/bin/msedgedriver'
Selenium::WebDriver::EdgeChrome.path = '/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary'
unless ENV['CI']
Selenium::WebDriver::Edge::Service.driver_path = '/usr/local/bin/msedgedriver'
Selenium::WebDriver::EdgeChrome.path = '/Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary'
end
Webdrivers::Edgedriver.required_version = '76.0.168' if ENV['CI']
Capybara.register_driver :selenium_edge do |app|
# ::Selenium::WebDriver.logger.level = "debug"