Created
February 24, 2019 02:16
-
-
Save gartha1/5fe5da228a7302f2acc0ae66a407aeb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\rubytest\gbrow>type Gemfile | |
source 'https://rubygems.org' | |
gem 'selenium-webdriver' | |
C:\rubytest\gbrow>type aaa.rb | |
require 'selenium-webdriver' | |
driver = Selenium::WebDriver.for:chrome | |
C:\rubytest\gbrow>ruby -d aaa.rb | |
Exception `LoadError' at C:/Ruby24-x64/lib/ruby/2.4.0/rubygems.rb:1355 - cannot load such file -- rubygems/defaults/ruby | |
aaa.rb:4: warning: assigned but unused variable - driver | |
Exception `LoadError' at C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55 - cannot load such file -- selenium-webdriver | |
Exception `LoadError' at C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ffi-1.10.0-x64-mingw32/lib/ffi/library.rb:259 - LoadError | |
Exception `LoadError' at C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/ffi-1.10.0-x64-mingw32/lib/ffi/library.rb:259 - LoadError | |
Using Ext extension for JSON. | |
Exception `Errno::EADDRNOTAVAIL' at C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:61 - The requested address is not va | |
its context. - bind(2) for "127.0.0.1" port 9514 | |
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:136: warning: instance variable @process not initialized | |
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:78: warning: instance variable @process not initialized | |
Exception `NoMethodError' at C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:78 - undefined method `poll_for_exit' for nil:N | |
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:136: warning: instance variable @process not initialized | |
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:78:in `stop': undefined method `poll_for_exit' for nil:NilClass (NoMethodErr | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:67:in `block in start' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/platform.rb:141:in `block in exit_hook' | |
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:61:in `initialize': The requested address is not valid in its context. - | |
) for "127.0.0.1" port 9514 (Errno::EADDRNOTAVAIL) | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:61:in `new' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:61:in `can_lock?' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:50:in `lock' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/socket_lock.rb:36:in `locked' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/service.rb:69:in `start' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/chrome/driver.rb:44:in `initialize' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/driver.rb:44:in `new' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/common/driver.rb:44:in `for' | |
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver.rb:86:in `for' | |
from aaa.rb:4:in `<main>' | |
C:\rubytest\gbrow> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment