1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Use webdrivers for IE too

This commit is contained in:
Thomas Walpole 2019-04-26 11:42:06 -07:00
parent 4a8af51dde
commit b623bf1a99
2 changed files with 11 additions and 12 deletions

View file

@ -36,14 +36,13 @@ install:
build: off
before_test:
# - ps: Invoke-WebRequest 'https://github.com/SeleniumHQ/selenium/raw/master/cpp/prebuilt/x64/Release/IEDriverServer.exe' -OutFile 'C:\Tools\WebDriver\IEDriverServer.exe'
- ps: Invoke-WebRequest 'https://github.com/SeleniumHQ/selenium/raw/master/cpp/prebuilt/Win32/Release/IEDriverServer.exe' -OutFile 'C:\Tools\WebDriver\IEDriverServer.exe'
# - ps: Invoke-WebRequest 'https://github.com/SeleniumHQ/selenium/raw/master/cpp/prebuilt/Win32/Release/IEDriverServer.exe' -OutFile 'C:\Tools\WebDriver\IEDriverServer.exe'
- ruby -v
- gem -v
- bundle -v
- chromedriver.exe --version
- geckodriver.exe --version
- IEDriverServer.exe --version
# - chromedriver.exe --version
# - geckodriver.exe --version
# - IEDriverServer.exe --version
test_script:
- bundle exec rake travis

View file

@ -5,13 +5,13 @@ require 'selenium-webdriver'
require 'shared_selenium_session'
require 'rspec/shared_spec_matchers'
if ENV['CI']
if ::Selenium::WebDriver::Service.respond_to? :driver_path=
::Selenium::WebDriver::IE::Service
else
::Selenium::WebDriver::IE
end.driver_path = 'C:\Tools\WebDriver\IEDriverServer.exe'
end
# if ENV['CI']
# if ::Selenium::WebDriver::Service.respond_to? :driver_path=
# ::Selenium::WebDriver::IE::Service
# else
# ::Selenium::WebDriver::IE
# end.driver_path = 'C:\Tools\WebDriver\IEDriverServer.exe'
# end
def selenium_host
ENV.fetch('SELENIUM_HOST', '192.168.56.102')