出错:无法找到独立的可执行文件请下载IEDRIVERSERVER

时间:2016-03-03 17:16:04

标签: ruby internet-explorer cucumber watir-webdriver

我正在使用watir-webdriver并尝试启动IE(版本11),这是默认浏览器。我认为浏览器应该只基于我的步骤def中的代码启动(见下文)。我没有使用selenium-webdriver。我尝试将驱动程序放在路径中并更改了IE浏览器上的保护模式。似乎没什么用。有什么想法吗 ?非常感谢任何见解。

步骤清晰度

require 'rubygems'
require 'watir-webdriver'
require 'watir'`
require 'rspec'
require 'cucumber'
#require 'selenium-webdriver'

Given(/^On the Lumber Trading Screen, select a facility grouping that has a facility that uses Availability \(I used facility_Id 354\)$/) do
@browser = Watir::Browser.new :ie
@browser.window.maximize
@browser.goto 'http:xxxxxxxxx'

Gemfile
source "https://rubygems.org"
gem 'cucumber'
gem 'rspec'
gem 'watir-webdriver'
gem 'selenium-webdriver'
gem 'watir'
gem 'rubygems'

env.rb

equire 'watir'
require 'cucumber'
require 'watir-webdriver'
#require 'selenium-webdriver'
require 'rubygems'

#require 'rake'
#desc 'Run Cucumber features and generate an HTML summary, JUnit XML and a plain text log'
#
#Cucumber::Rake::Task.new(:features) do |t|
#
#  t.cucumber_opts =
#      "--no-color"
#      "--format junit    -o log/",
#      "--format html     -o log/features.html",
#      "--format pretty"]

TEST_DATA_DIR = "./features/test_data"
if ENV["HEADLESS"]
  INDEX_OFFSET = 0
  WEBDRIVER = false
else

end

0 个答案:

没有答案