osx - Watir with Ruby on rails on Mac, Cannot get chrome browser to open in console, Please? -
i'm trying open empty browser following,
browser = watir::browser.new(chrome)
what returned nameerror: uninitialized constant watir (pry)
i've added
gem 'pry-rails' gem 'watir'
to config file of app carcass.
i've updated things can think of, chrome driver, watir driver
when search filesystem find app , run bundle script error
could not find gem 'watir' in of gem sources listed in gemfile or available on machine.
can tell me need rid of " uninitialized constant watir " error` simple test browser can open??
i'm new apologies if i'm not specific enough.
thanks.
it's basic ruby syntax. there 2 errors. first, interpreter complains name watir
hasn't been introduced. secondly, chrome
should :chrome
symbol.
require "watir-webdriver" browser = watir::browser.new(:chrome)
Comments
Post a Comment