gpt4 book ai didi

selenium - 面临 Safari 5 和 Selenium-WebDriver 的问题

转载 作者:行者123 更新时间:2023-12-02 09:10:19 26 4
gpt4 key购买 nike

bundle 中包含的 gem :

  • 捆绑程序 (1.2.4)
  • 子进程 (0.3.9)
  • ffi(1.4.0)
  • json (1.7.7)
  • mime 类型 (1.21)
  • multi_json (1.6.1)
  • 机架 (1.5.2)
  • 休息客户端(1.6.7)
  • rubyzip (0.9.9)
  • selenium-webdriver (2.31.0)
  • 西纳特拉 (1.3.0 063bcb1)
  • sqlite3 (1.3.7)
  • sqlite3-ruby (1.3.3)
  • sys-uname (0.9.1)
  • 测试守护者 (0.1.15)
  • 倾斜 (1.3.5)
  • 特洛普 (2.0)
  • 用户代理 (0.4.16)
  • websocket (1.0.7)
  • xml-simple (1.1.2)

代码/异常:

csut11:current demo$ bundle exec irb
1.9.2-p290 :001 > require "selenium-webdriver"
=> true
1.9.2-p290 :002 > browser = Selenium::WebDriver.for :safari
EOFError: end of file reached
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/safari/server.rb:37:in `read_nonblock'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/safari/server.rb:37:in `receive'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/safari/bridge.rb:60:in `raw_execute'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/safari/bridge.rb:40:in `create_session'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/bridge.rb:68:in `initialize'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/safari/bridge.rb:23:in `initialize'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/common/driver.rb:47:in `new'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/common/driver.rb:47:in `for'
from /Users/demo/.rvm/gems/ruby-1.9.2-p290/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver.rb:67:in `for'
from (irb):2
from /Users/demo/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
1.9.2-p290 :003 >

最佳答案

关于selenium - 面临 Safari 5 和 Selenium-WebDriver 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15339650/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com