运行我的第一个水豚Appium测试的问题

时间:2018-06-22 18:46:25

标签: rubygems capybara appium-ios

我正在尝试在iPad Air上运行一个简单的水豚appium测试,但出现了很多错误。我不确定自己到底在做什么错。

require 'appium_capybara'
desired_caps_ios = {
    platform:       "Mac",
    platformName:  "iOS",
    platformVersion: "11.4",
    deviceName:    "iPhone Simulator",
    app:           "Safari",
}

url = "http://localhost:4723"

Capybara.register_driver(:appium) do |app|
    appium_lib_options = {
        server_url:           url
    }
    all_options = {
        appium_lib:  appium_lib_options,
        caps:        desired_caps_ios,
    }
    Appium::Capybara::Driver.new app, all_options
end

Capybara.default_driver = :appium 

我收到以下错误:

/usr/local/lib/ruby/gems/2.5.0/gems/appium_lib_core-1.7.0/lib/appium_lib_core/common/base/bridge/w3c.rb:8:警告:已初始化的常量Selenium :: WebDriver :: PointerActions :: DEFAULT_MOVE_DURATION /usr/local/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb:21:警告:DEFAULT_MOVE_DURATION的先前定义在这里< / p>

我尝试导航到/usr/local/lib/ruby/gems/2.5.0/gems/selenium-webdriver-3.12.0/lib/selenium/webdriver/common/interactions/pointer_actions.rb和试图注释掉gem文件中的DEFAULT_MOVE_DURATION行代码,甚至试图更改权限,但它不允许我这样做。我没有更多关于如何解决此问题的信息。

0 个答案:

没有答案