This is the error: C:/Ruby192/bin/ruby.exe -S rspec ./spec/isolation/demo/login_page_spec.rb --requ ire taza --format html --out artifacts/1330543000/index.html --format p --format FailingExamplesFormatter --out artifacts/1330543000/failing_examples.txt F
Failures:
1) LoginPage should Login to insight
Failure/Error: Demo.new do |d|
LoadError:
no such file to load -- watir/ie
# ./spec/isolation/demo/login_page_spec.rb:6:in `block (2 levels) in
<top (
required)>'
Finished in 0.20854 seconds
1 example, 1 failure
It's failing on the line in my example that opens the browser instance.
I've also attached the file that deals with browser instances in taza.
def self.watir_ie(params)
require 'watir'
if params[:attach]
browser = Watir::IE.find(:title, //)
end
browser || Watir::IE.new
end
end
I've noticed that my current watir configuration is not playing well with a
new taza project i generated also, but it works fine for the legacy project
i have except when i try to use win32/screenshot. I've tried playing around
with the browser file in the taza source code that deals with the watir
instance to make it not use Watir::IE.new, but it tries to open firefox ( i
get the -jssh error message) if i do just browser = Watir::Browser.new even
though entering in irb opens ie.
On Wednesday, February 29, 2012 8:57:49 AM UTC-8, Chuck van der Linden
wrote:
>
> the actual full text of the error is generally more helpful than just
> knowing the type of error..
>
> for example we might learn which line in which file is trying to
> require 'watir/ie'
>
> I'm curious why you would require 'watir/ie' and not just 'watir'
> I've seen that in some old scripts around here, my gut impression is
> that it's some legacy practice that may not be correct with current
> versions of watir. In my case I say that in part because the same
> code that is doing that is also doing "include 'watir'"' a few lines
> later, and I remember a posting 3 or more years ago in the watir 1.6
> days (http://wiki.openqa.org/display/WTR/include+Watir) where brett
> warned us that was bad practice. But nobody here can tell me why it's
> that way, it's just how those old scripts were done and 'if it's
> working....."
>
> On Feb 28, 12:47 pm, hillary <[email protected]> wrote:
> > no such file to load -- watir/ie' error.
> >
> > I'm running into the same error in another place with a new taza project
> i
> > created, so i think i'm running into a mixture of problems.
> >
> >
> >
> >
> >
> >
> >
> > On Tuesday, February 28, 2012 12:27:08 PM UTC-8, enroxorz wrote:
> >
> > > What is the error you are getting? Also, note that rautomation 0.6.3
> > > and 0.7.0 throws an error. Did you update to the latest
> > > win32screenshot?
> >
> > > On Feb 28, 2:52 pm, hillary <[email protected]> wrote:
> > > > any reason why win32/screenshot would have a problem?
> >
> > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote:
> >
> > > > > No, there shouldn't be any difference how the browser object is
> > > > > created since RAutomation doesn't depend on Watir at all and the
> > > > > dependency between Watir-RAutomation shouldn't play any role in
> here
> > > > > either...
> >
> > > > > Jarmo
> >
> > > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote:
> > > > > > so it's not working, because the latest version of rautomation
> > > having a
> > > > > > problem with how taza starts up the watir browser event.
> > > > > > def self.watir_ie(params)
> > > > > > require 'watir'
> > > > > > puts "running watir"
> > > > > > if params[:attach]
> > > > > > browser = Watir::IE.find(:title, //)
> > > > > > end
> > > > > > browser || Watir::IE.new
> > > > > > end
> > > > > > end
> >
> > > > > > I'm sure it's the latest version, because with the previous
> version
> > > of
> > > > > > rautomation and the pre release version of watir i didn't get a
> 'no
> > > such
> > > > > > file to load -- watir/ie' error. i can't change the code snippet
> > > because
> > > > > > for some reason taza tries to open firefox.
> >
> > > > > > Any reason why the latest version of rautomation would have a
> > > problem
> > > > > with
> > > > > > starting the browser with b = Watir::IE.new?
> >
> > > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman
> > > wrote:
> >
> > > > > > > Yes, since that method is deleted a long time ago already. Use
> > > > > > > Win32::Screenshot instead.
> >
> > > > > > > First, install Win32::Screenshot
> > > > > > > gem install win32screenshot
> >
> > > > > > > Then, take the screenshot by providing browser.rautomation as
> a
> > > > > > > parameter:
> > > > > > > Win32::Screenshot::Take.of(:rautomation,
> > > > > > > browser.rautomation).write("screenshot.png")
> >
> > > > > > > More examples athttps://github.com/jarmo/win32screenshot
> >
> > > > > > > Jarmo Pertman
> > > > > > > -----
> > > > > > > IT does really matter -http://itreallymatters.net
> >
> > > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote:
> > > > > > > > for the pre-release version of watir (3.0.rc2) I get a no
> method
> > > > > error
> >
> > > > > > > > my code:
> > > > > > > > browser.screen_capture($file_path,true,false)
> > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote:
> >
> > > > > No, there shouldn't be any difference how the browser object is
> > > > > created since RAutomation doesn't depend on Watir at all and the
> > > > > dependency between Watir-RAutomation shouldn't play any role in
> here
> > > > > either...
> >
> > > > > Jarmo
> >
> > > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote:
> > > > > > so it's not working, because the latest version of rautomation
> > > having a
> > > > > > problem with how taza starts up the watir browser event.
> > > > > > def self.watir_ie(params)
> > > > > > require 'watir'
> > > > > > puts "running watir"
> > > > > > if params[:attach]
> > > > > > browser = Watir::IE.find(:title, //)
> > > > > > end
> > > > > > browser || Watir::IE.new
> > > > > > end
> > > > > > end
> >
> > > > > > I'm sure it's the latest version, because with the previous
> version
> > > of
> > > > > > rautomation and the pre release version of watir i didn't get a
> 'no
> > > such
> > > > > > file to load -- watir/ie' error. i can't change the code snippet
> > > because
> > > > > > for some reason taza tries to open firefox.
> >
> > > > > > Any reason why the latest version of rautomation would have a
> > > problem
> > > > > with
> > > > > > starting the browser with b = Watir::IE.new?
> >
> > > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman
> > > wrote:
> >
> > > > > > > Yes, since that method is deleted a long time ago already. Use
> > > > > > > Win32::Screenshot instead.
> >
> > > > > > > First, install Win32::Screenshot
> > > > > > > gem install win32screenshot
> >
> > > > > > > Then, take the screenshot by providing browser.rautomation as
> a
> > > > > > > parameter:
> > > > > > > Win32::Screenshot::Take.of(:rautomation,
> > > > > > > browser.rautomation).write("screenshot.png")
> >
> > > > > > > More examples athttps://github.com/jarmo/win32screenshot
> >
> > > > > > > Jarmo Pertman
> > > > > > > -----
> > > > > > > IT does really matter -http://itreallymatters.net
> >
> > > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote:
> > > > > > > > for the pre-release version of watir (3.0.rc2) I get a no
> method
> > > > > error
> >
> > > > > > > > my code:
> > > > > > > > browser.screen_capture($file_path,true,false)
> > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote:
> >
> > > > > No, there shouldn't be any difference how the browser object is
> > > > > created since RAutomation doesn't depend on Watir at all and the
> > > > > dependency between Watir-RAutomation shouldn't play any role in
> here
> > > > > either...
> >
> > > > > Jarmo
> >
> > > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote:
> > > > > > so it's not working, because the latest version of rautomation
> > > having a
> > > > > > problem with how taza starts up the watir browser event.
> > > > > > def self.watir_ie(params)
> > > > > > require 'watir'
> > > > > > puts "running watir"
> > > > > > if params[:attach]
> > > > > > browser = Watir::IE.find(:title, //)
> > > > > > end
> > > > > > browser || Watir::IE.new
> > > > > > end
> > > > > > end
> >
> > > > > > I'm sure it's the latest version, because with the previous
> version
> > > of
> > > > > > rautomation and the pre release version of watir i didn't get a
> 'no
> > > such
> > > > > > file to load -- watir/ie' error. i can't change the code snippet
> > > because
> > > > > > for some reason taza tries to open firefox.
> >
> > > > > > Any reason why the latest version of rautomation would have a
> > > problem
> > > > > with
> > > > > > starting the browser with b = Watir::IE.new?
> >
> > > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman
> > > wrote:
> >
> > > > > > > Yes, since that method is deleted a long time ago already. Use
> > > > > > > Win32::Screenshot instead.
> >
> > > > > > > First, install Win32::Screenshot
> > > > > > > gem install win32screenshot
> >
> > > > > > > Then, take the screenshot by providing browser.rautomation as
> a
> > > > > > > parameter:
> > > > > > > Win32::Screenshot::Take.of(:rautomation,
> > > > > > > browser.rautomation).write("screenshot.png")
> >
> > > > > > > More examples athttps://github.com/jarmo/win32screenshot
> >
> > > > > > > Jarmo Pertman
> > > > > > > -----
> > > > > > > IT does really matter -http://itreallymatters.net
> >
> > > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote:
> > > > > > > > for the pre-release version of watir (3.0.rc2) I get a no
> method
> > > > > error
> >
> > > > > > > > my code:
> > > > > > > > browser.screen_capture($file_path,true,false)
> > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote:
> >
> > > > > No, there shouldn't be any difference how the browser object is
> > > > > created since RAutomation doesn't depend on Watir at all and the
> > > > > dependency between Watir-RAutomation shouldn't play any role in
> here
> > > > > either...
> >
> > > > > Jarmo
> >
> > > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote:
> > > > > > so it's not working, because the latest version of rautomation
> > > having a
> > > > > > problem with how taza starts up the watir browser event.
> > > > > > def self.watir_ie(params)
> > > > > > require 'watir'
> > > > > > puts "running watir"
> > > > > > if params[:attach]
> > > > > > browser = Watir::IE.find(:title, //)
> > > > > > end
> > > > > > browser || Watir::IE.new
> > > > > > end
> > > > > > end
> >
> > > > > > I'm sure it's the latest version, because with the previous
> version
> > > of
> > > > > > rautomation and the pre release version of watir i didn't get a
> 'no
> > > such
> > > > > > file to load -- watir/ie' error. i can't change the code snippet
> > > because
> > > > > > for some reason taza tries to open firefox.
> >
> > > > > > Any reason why the latest version of rautomation would have a
> > > problem
> > > > > with
> > > > > > starting the browser with b = Watir::IE.new?
> >
> > > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman
> > > wrote:
> >
> > > > > > > Yes, since that method is deleted a long time ago already. Use
> > > > > > > Win32::Screenshot instead.
> >
> > > > > > > First, install Win32::Screenshot
> > > > > > > gem install win32screenshot
> >
> > > > > > > Then, take the screenshot by providing browser.rautomation as
> a
> > > > > > > parameter:
> > > > > > > Win32::Screenshot::Take.of(:rautomation,
> > > > > > > browser.rautomation).write("screenshot.png")
> >
> > > > > > > More examples athttps://github.com/jarmo/win32screenshot
> >
> > > > > > > Jarmo Pertman
> > > > > > > -----
> > > > > > > IT does really matter -http://itreallymatters.net
> >
> > > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote:
> > > > > > > > for the pre-release version of watir (3.0.rc2) I get a no
> method
> > > > > error
> >
> > > > > > > > my code:
> > > > > > > > browser.screen_capture($file_path,true,false)
> > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote:
> >
> > > > > No, there shouldn't be any difference how the browser object is
> > > > > created since RAutomation
> >
> > ...
> >
> > read more ยป
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
browser.rb
Description: Binary data
