[wtr-general] how we create a general function for click event for all the properties of object

2009-01-29 Thread Poo

I want to ask that how we create a function in watir which is a
general function.
This function is useful for all the click event actually first of all
object can be found
if it's type is either link, image, button or radio button then it
would clicked automatically
with the help of this function.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: require 'roo' giving Bad file descriptor error

2009-01-29 Thread Alister Scott

You don't happen to be writing your code in a file called roo.rb?
If so, you need to call it something else.

Cheers,
Alister

On Jan 29, 3:19 pm, sHiVa krapa.ph...@gmail.com wrote:
 I have installed roo using gem install roo and installation is
 successful. after that while i am trying to include that package, it
 is giving Bad file descriptor error error.Now i am desinging a
 framework in RUBY Watir for automating my project. I have choosen roo,
 because of its easy API.I am doubt about some dependecy pakages. Is
 any other pakages required?. I have  installed watir 1.6.2 in my
 machine. - thanks

 On Jan 28, 8:18 pm, Gaurav Bansal itsban...@gmail.com wrote:

  have you installed roo gem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: QA Position Available w/ Watir

2009-01-29 Thread Alister Scott

Where is the position located?
Could it be done working from home in Australia? :)

Cheers,
Alister Scott
Brisbane, Australia
http://watirmelon.wordpress.com/
alister.sc...@gmail.com

On Jan 29, 9:06 am, Matt 007mik...@gmail.com wrote:
 If anyone is looking for a position, I have a client who has a need
 for a QA Tester/Analyst who is experienced with Watir.  I have an
 exclusive on this opportunity so if you, or someone you know is
 interested, please call me asap.

 Thanks

 Matt

 800 428 9073 x189
 mrich...@eliassen.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Including watir in ruby program

2009-01-29 Thread malar

Hi,
I successfully Installed  Ruby 186.26   and watir-1.6.2  common watir
1.6.2.
I set the proxy value too.
But I am not able to run my program. My coding as follows

require 'rubygems'
require 'watir'
include watir

Test-site=http://www.google.com/

ie=IE.new
ie.goto Test-site

…….

  I am getting “undefined local variable or method `watir' for
main:Object (NameError)” error when I run this code..

If I remove “include watir” line from the code

I get an error” uninitialized constant IE (NameError)”

What’s the problem?

Please help me…

 Thanks in Advance,
malar


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread aidy lewis

Hi,

What do you get with this?

 gem list --local watir

and this?

require 'rubygems'
require 'watir'

test_site = http://www.google.com/;

ie=Watir::IE.new
ie.goto test_site


Aidy

On 29/01/2009, malar malar.je...@gmail.com wrote:

  Hi,
  I successfully Installed  Ruby 186.26   and watir-1.6.2  common watir
  1.6.2.
  I set the proxy value too.
  But I am not able to run my program. My coding as follows

  require 'rubygems'
  require 'watir'
  include watir

  Test-site=http://www.google.com/

  ie=IE.new
  ie.goto Test-site

  …….

   I am getting undefined local variable or method `watir' for
  main:Object (NameError) error when I run this code..

  If I remove include watir line from the code

  I get an error uninitialized constant IE (NameError)

  What's the problem?

  Please help me…

   Thanks in Advance,
  malar


  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread malar b
hi,
c:/gem list --local watir this code Results

***LOCAL GEMS***
watir1.6.2
Automated Tool for web application

if i run this code, i am getting the following error

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5:in
`remove_const': constant Logger::Format not defined (NameError)
 from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
 from
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support.rb:27
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
 from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/non_control_elements.rb:1
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82

and also i am not behind a firewall

Thanx
Malar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread aidy lewis

Hi,

Not sure. Trying taking out require 'rubygems'. Otherwise 'gem update watir -y'

Are you on Windows?

Aidy


On 29/01/2009, malar b malar.je...@gmail.com wrote:
 hi,
 c:/gem list --local watir this code Results

 ***LOCAL GEMS***
 watir1.6.2
 Automated Tool for web application

 if i run this code, i am getting the following error

 c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5:in
 `remove_const': constant Logger::Format not defined (NameError)
  from
 c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support/clean_logger.rb:5
   from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `gem_original_require'
  from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `require'
  from
 c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.0/lib/active_support.rb:27
   from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `gem_original_require'
  from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `require'
  from
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/non_control_elements.rb:1
   from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `gem_original_require'
  from
 c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
 `require'
  from
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:82

 and also i am not behind a firewall

 Thanx

 Malar


  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

Hi Sai - Yes I did check the permissions, and searched the newsgroups
for possible solutions.  I tried running Watir on different cygwin
platforms w/o success.

Could the bug be tied to a certain version of ruby??


On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:
 Not sure how many have tried Watir with Cygwin but your problem seems
 to be a permission one.
 Can you try to change the permission by doing a chmod and check if it
 is working?

 Also has anyone faced any problems in using Watir with PowerShell?

 Regards,
 Sai

 On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

  Watir doesn't work for me.  Sadly ironic, for a regression test
  tool...

  Platform: WinXP / Cygwin
  Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
  Watir 1.6.2

  Here's what I do:
  - gem install watir
  - irb

   require 'watir'
  = true
   x = Watir::IE.new

  LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
  lib/watir
  /win32ole/win32ole.so
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole/win32ole
  .so
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole.rb:5
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `gem_o
  riginal_require'
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
  38
          from (irb):2


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Rspec beta book

2009-01-29 Thread aidy lewis

http://www.pragprog.com/titles/achbd/the-rspec-book

Aidy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] exception on an exists?

2009-01-29 Thread aidy lewis

Hi,

Has anyone received an exception on object.exists?

   i = 0
   until browser.link(:text, /Delete Asset/).exists? or i = 10
  browser.link(:text, /Refresh/).click
  sleep 5
end

 This:
 'browser.link(:text, /Delete Asset/).exists?'

 should be returning true of false,  but is throwing an exception.

Aidy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: exception on an exists?

2009-01-29 Thread aidy lewis

Please forgive me for being stupid

i == 10

not

i = 10

Aidy

On 29/01/2009, aidy lewis aidy.le...@googlemail.com wrote:
 Hi,

  Has anyone received an exception on object.exists?

i = 0
until browser.link(:text, /Delete Asset/).exists? or i = 10
   browser.link(:text, /Refresh/).click
   sleep 5
 end

   This:
   'browser.link(:text, /Delete Asset/).exists?'

   should be returning true of false,  but is throwing an exception.


  Aidy


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: exception on an exists?

2009-01-29 Thread Paul Rogers

what  exceptiondo you get?

On Thu, Jan 29, 2009 at 9:41 AM, aidy lewis aidy.le...@googlemail.com wrote:

 Please forgive me for being stupid

 i == 10

 not

 i = 10

 Aidy

 On 29/01/2009, aidy lewis aidy.le...@googlemail.com wrote:
 Hi,

  Has anyone received an exception on object.exists?

i = 0
until browser.link(:text, /Delete Asset/).exists? or i = 10
   browser.link(:text, /Refresh/).click
   sleep 5
 end

   This:
   'browser.link(:text, /Delete Asset/).exists?'

   should be returning true of false,  but is throwing an exception.


  Aidy


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Bret Pettichord

You might need to set the execute bit of the win32ole.so file.

Arco wrote:
 Hi Sai - Yes I did check the permissions, and searched the newsgroups
 for possible solutions.  I tried running Watir on different cygwin
 platforms w/o success.

 Could the bug be tied to a certain version of ruby??


 On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:
   
 Not sure how many have tried Watir with Cygwin but your problem seems
 to be a permission one.
 Can you try to change the permission by doing a chmod and check if it
 is working?

 Also has anyone faced any problems in using Watir with PowerShell?

 Regards,
 Sai

 On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

 
 Watir doesn't work for me.  Sadly ironic, for a regression test
 tool...
   
 Platform: WinXP / Cygwin
 Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
 Watir 1.6.2
   
 Here's what I do:
 - gem install watir
 - irb
   
 require 'watir'
   
 = true
   
 x = Watir::IE.new
   
 LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
 lib/watir
 /win32ole/win32ole.so
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole/win32ole
 .so
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole.rb:5
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `gem_o
 riginal_require'
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
 38
 from (irb):2
   
 
 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Unable to work with IFrame

2009-01-29 Thread Michael Hwee
frame does not support exists?().

However, you can *monkey-patch* as followed.

module Watir
  class Frame
alias_method :_locate, :locate
def locate
  begin
return _locate
  rescue
return nil
  end
end  
def exists?
  return @o != nil
end
  end
end  

Michael





From: Niharika Patro niharikapa...@gmail.com
To: watir-general@googlegroups.com
Sent: Thursday, January 29, 2009 4:57:13 AM
Subject: [wtr-general] Unable to work with IFrame


Hi,
 
In my application, when I click on a link it opens a Iframe.
 
I am trying to verify whether the iframe appears or not with the following code:
 
@@browser.frame(loginframe).exist?() or @@browser.frame(:id, 
loginframe).exist?()  
It throws the following error:
test_au_in_utility_panel(VideoPortal_Commenting_Notify):
Watir::Exception::UnknownFrameException: Unable to locate a frame with name 
loginframe
 Please help in handling this.
Regards
Niharika
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Present Watir at OSCON?

2009-01-29 Thread Pete Dignan

Is anyone submitting a proposal to do a talk related to Watir at
OSCON?  Taza, Cucumber+Watir, Watirloo?   AWTA attendee Dave Hoover
talked last year (though sadly, not on Watir...).

http://en.oreilly.com/oscon2009

Proposals are due by February 3, 2009.  The conference is July 20-24
in San Jose, CA.

Pete
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] scripts for IE and Firefox both

2009-01-29 Thread Lisa Crispin
Hi, I hope this isn't too annoying of a question. I'm just trying to decide
our next steps wrt Watir and our test automation. I just thought I'd double
check on what I think I know already.

I spent the last several weeks getting our Watir suites working with v.
1.6.2 and Vista. I finally beat them into submission, and I'm exhausted.
(This is not a reflection on Watir, but probably on the design of our
scripts, and definitely on my lack of expertise).

My ultimate goal was to get these scripts working with Firefox also, and I
had some hope when I first read about 1.6.2 that this would be possible.
However, I recall that Bret replied to one of my emails relating to dealing
with modal dialogs this way:

I'm saying that I do not have a plan on how to support modal dialog
testing that will work with both IE and Firefox, and as far as I know,
 no one else is working on this.

I'm wondering if this means we should abandon all hope of ever being able to
run our scripts against Firefox (which would make them a lot easier to
integrate with our build process, as well as easier for the developers who
all use Macs to run them to help with their own testing)?

The developers could run the scripts on their Parallels or VMWare, but the
scripts run very slowly there for some reason. Should we be thinking about
migrating to a different browser driver if we want to have scripts that
everyone can use to help with testing? We have good tools for our automated
regression tests, and I guess we could adapt those tests to do the same
purpose of Watir, it just happened that it was the Watir scripts that got
all the good flexibility that make them handy for setting up test scenarios.

Do other people have automated scripts to help with exploratory testing and
manual testing, and if so, what tools do you use for that? Or are other
people just luckier and don't have modal dialogs to deal with?

Thanks,
Lisa

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Problem displaying XML file with XLS in Firefox and Safari

2009-01-29 Thread Jim Matthews

I am using ci_reporter to produce XML output from test runs from Watir
tests.

Tiffany supplied an XLS file to reference in the XML file, which works
fine in IE.  The problem is that when you try to view the XML file in
Firefox or Safari, the file looks like raw XML.

I was wondering if anyone had a similar experience with XLS and knew
if you had to do something different to get it to work with Firefox or
Safari.  If you would like to see what is happening, you can goto:

http://www.watirbuild.com/builds/watir/1681.3

Jim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Paul Rogers

ok, modal dialogs are a different beast entirely.

I dont have a need for dialog support right now, and am working on
drag and drop support in watir.

If you are only require ing this on windows, you might want to look
into autoit - if you want cros platform, no idea.

Paul



On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com wrote:
 I guess I mean regular js pop up boxes. A modal dialog window that pops up
 and you have to click ok to keep going. They look the same in firefox as
 in IE.
 Lisa

 On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca wrote:

 what do you use in Firefox for the modaldialogs?

 or do you mean regular js pop up boxes?

 Paul

 On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com
 wrote:
  Hi, I hope this isn't too annoying of a question. I'm just trying to
  decide
  our next steps wrt Watir and our test automation. I just thought I'd
  double
  check on what I think I know already.
 
  I spent the last several weeks getting our Watir suites working with v.
  1.6.2 and Vista. I finally beat them into submission, and I'm exhausted.
  (This is not a reflection on Watir, but probably on the design of our
  scripts, and definitely on my lack of expertise).
 
  My ultimate goal was to get these scripts working with Firefox also, and
  I
  had some hope when I first read about 1.6.2 that this would be possible.
  However, I recall that Bret replied to one of my emails relating to
  dealing
  with modal dialogs this way:
 
  I'm saying that I do not have a plan on how to support modal dialog
  testing that will work with both IE and Firefox, and as far as I know,
  no one else is working on this.
 
  I'm wondering if this means we should abandon all hope of ever being
  able to
  run our scripts against Firefox (which would make them a lot easier to
  integrate with our build process, as well as easier for the developers
  who
  all use Macs to run them to help with their own testing)?
 
  The developers could run the scripts on their Parallels or VMWare, but
  the
  scripts run very slowly there for some reason. Should we be thinking
  about
  migrating to a different browser driver if we want to have scripts that
  everyone can use to help with testing? We have good tools for our
  automated
  regression tests, and I guess we could adapt those tests to do the same
  purpose of Watir, it just happened that it was the Watir scripts that
  got
  all the good flexibility that make them handy for setting up test
  scenarios.
 
  Do other people have automated scripts to help with exploratory testing
  and
  manual testing, and if so, what tools do you use for that? Or are other
  people just luckier and don't have modal dialogs to deal with?
 
  Thanks,
  Lisa
 
 
 
  
 





 --
 Lisa Crispin
 Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
 and Agile Teams_ (Addison-Wesley 2009)
 http://lisacrispin.com


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Lisa Crispin
To clarify - our Watir scripts handle our modal dialogs in IE just fine. For
example:
def click_modal_button(ie, type='OK', sleep_time=6, timeout=20)
hwnd = ie.enabled_popup(sleep_time)
if (hwnd)
  w = WinClicker.new
  w.clickWindowsButton_hwnd( hwnd, #{type})
  w=nil
end
  end

I'm looking for affirmation that we will never be able to get these scripts
to work with modal dialogs in Firefox unless the test automation fairy turns
me into some better kind of programmer and I can add this functionality to
Watir myself.

I'm puzzled though - are modal dialogs weird? Do most apps not use them?
What do you use instead?
thanks
Lisa

On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca wrote:


 ok, modal dialogs are a different beast entirely.

 I dont have a need for dialog support right now, and am working on
 drag and drop support in watir.

 If you are only require ing this on windows, you might want to look
 into autoit - if you want cros platform, no idea.

 Paul



 On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com
 wrote:
  I guess I mean regular js pop up boxes. A modal dialog window that pops
 up
  and you have to click ok to keep going. They look the same in firefox
 as
  in IE.
  Lisa
 
  On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca
 wrote:
 
  what do you use in Firefox for the modaldialogs?
 
  or do you mean regular js pop up boxes?
 
  Paul
 
  On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com
  wrote:
   Hi, I hope this isn't too annoying of a question. I'm just trying to
   decide
   our next steps wrt Watir and our test automation. I just thought I'd
   double
   check on what I think I know already.
  
   I spent the last several weeks getting our Watir suites working with
 v.
   1.6.2 and Vista. I finally beat them into submission, and I'm
 exhausted.
   (This is not a reflection on Watir, but probably on the design of our
   scripts, and definitely on my lack of expertise).
  
   My ultimate goal was to get these scripts working with Firefox also,
 and
   I
   had some hope when I first read about 1.6.2 that this would be
 possible.
   However, I recall that Bret replied to one of my emails relating to
   dealing
   with modal dialogs this way:
  
   I'm saying that I do not have a plan on how to support modal dialog
   testing that will work with both IE and Firefox, and as far as I know,
   no one else is working on this.
  
   I'm wondering if this means we should abandon all hope of ever being
   able to
   run our scripts against Firefox (which would make them a lot easier to
   integrate with our build process, as well as easier for the developers
   who
   all use Macs to run them to help with their own testing)?
  
   The developers could run the scripts on their Parallels or VMWare, but
   the
   scripts run very slowly there for some reason. Should we be thinking
   about
   migrating to a different browser driver if we want to have scripts
 that
   everyone can use to help with testing? We have good tools for our
   automated
   regression tests, and I guess we could adapt those tests to do the
 same
   purpose of Watir, it just happened that it was the Watir scripts that
   got
   all the good flexibility that make them handy for setting up test
   scenarios.
  
   Do other people have automated scripts to help with exploratory
 testing
   and
   manual testing, and if so, what tools do you use for that? Or are
 other
   people just luckier and don't have modal dialogs to deal with?
  
   Thanks,
   Lisa
  
  
  
   
  
 
 
 
 
 
  --
  Lisa Crispin
  Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
 Testers
  and Agile Teams_ (Addison-Wesley 2009)
  http://lisacrispin.com
 
 
  
 

 



-- 
Lisa Crispin
Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
and Agile Teams_ (Addison-Wesley 2009)
http://lisacrispin.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Paul Rogers

there are lots o different types of dialogs, most of the time you will
see an 'alert box;


done in javascript like this

alert('hi Lisa');

and you will see a box with an ok button and the words

a modalDialog displays a full html page using the showModalDialog
methd - as far as I know its an ie only feature.

so many apps wont use them, because they are IE only


Take a look at this link
http://wiki.openqa.org/display/WTR/Pop+Ups


Paul



On Thu, Jan 29, 2009 at 4:50 PM, Lisa Crispin lisa.cris...@gmail.com wrote:
 To clarify - our Watir scripts handle our modal dialogs in IE just fine. For
 example:
 def click_modal_button(ie, type='OK', sleep_time=6, timeout=20)
 hwnd = ie.enabled_popup(sleep_time)
 if (hwnd)
   w = WinClicker.new
   w.clickWindowsButton_hwnd( hwnd, #{type})
   w=nil
 end
   end

 I'm looking for affirmation that we will never be able to get these scripts
 to work with modal dialogs in Firefox unless the test automation fairy turns
 me into some better kind of programmer and I can add this functionality to
 Watir myself.

 I'm puzzled though - are modal dialogs weird? Do most apps not use them?
 What do you use instead?
 thanks
 Lisa

 On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca wrote:

 ok, modal dialogs are a different beast entirely.

 I dont have a need for dialog support right now, and am working on
 drag and drop support in watir.

 If you are only require ing this on windows, you might want to look
 into autoit - if you want cros platform, no idea.

 Paul



 On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin lisa.cris...@gmail.com
 wrote:
  I guess I mean regular js pop up boxes. A modal dialog window that pops
  up
  and you have to click ok to keep going. They look the same in firefox
  as
  in IE.
  Lisa
 
  On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers paul.rog...@shaw.ca
  wrote:
 
  what do you use in Firefox for the modaldialogs?
 
  or do you mean regular js pop up boxes?
 
  Paul
 
  On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin lisa.cris...@gmail.com
  wrote:
   Hi, I hope this isn't too annoying of a question. I'm just trying to
   decide
   our next steps wrt Watir and our test automation. I just thought I'd
   double
   check on what I think I know already.
  
   I spent the last several weeks getting our Watir suites working with
   v.
   1.6.2 and Vista. I finally beat them into submission, and I'm
   exhausted.
   (This is not a reflection on Watir, but probably on the design of our
   scripts, and definitely on my lack of expertise).
  
   My ultimate goal was to get these scripts working with Firefox also,
   and
   I
   had some hope when I first read about 1.6.2 that this would be
   possible.
   However, I recall that Bret replied to one of my emails relating to
   dealing
   with modal dialogs this way:
  
   I'm saying that I do not have a plan on how to support modal dialog
   testing that will work with both IE and Firefox, and as far as I
   know,
   no one else is working on this.
  
   I'm wondering if this means we should abandon all hope of ever being
   able to
   run our scripts against Firefox (which would make them a lot easier
   to
   integrate with our build process, as well as easier for the
   developers
   who
   all use Macs to run them to help with their own testing)?
  
   The developers could run the scripts on their Parallels or VMWare,
   but
   the
   scripts run very slowly there for some reason. Should we be thinking
   about
   migrating to a different browser driver if we want to have scripts
   that
   everyone can use to help with testing? We have good tools for our
   automated
   regression tests, and I guess we could adapt those tests to do the
   same
   purpose of Watir, it just happened that it was the Watir scripts that
   got
   all the good flexibility that make them handy for setting up test
   scenarios.
  
   Do other people have automated scripts to help with exploratory
   testing
   and
   manual testing, and if so, what tools do you use for that? Or are
   other
   people just luckier and don't have modal dialogs to deal with?
  
   Thanks,
   Lisa
  
  
  
   
  
 
 
 
 
 
  --
  Lisa Crispin
  Co-author with Janet Gregory, _Agile Testing: A Practical Guide for
  Testers
  and Agile Teams_ (Addison-Wesley 2009)
  http://lisacrispin.com
 
 
  
 





 --
 Lisa Crispin
 Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
 and Agile Teams_ (Addison-Wesley 2009)
 http://lisacrispin.com


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 

[wtr-general] how to display results

2009-01-29 Thread smita.godb...@gmail.com

Hi,
I am a new user of Watir and trying with google_search example for
displaying reports.  But it fails.  Can anyone help me regarding this?
The code snippet is as .
# the Watir controller
require 'rubygems'
require watir
#The main test
begin
#Create the new report
r=CLReport.new()
testReport =r.createReport('C:\\ruby\\Reports\\google_search.html')
# set a variable
test_site = http://www.google.com;

# open the IE browser
ie = Watir::IE.new

# print some comments
puts Beginning of test: Google search.

puts  Step 1: go to the test site:  + test_site
ie.goto test_site

puts  Step 2: enter 'pickaxe' in the search text field.
ie.text_field(:name, q).set pickaxe # q is the name of the
search field

puts  Step 3: click the 'Google Search' button.
ie.button(:name, btnG).click # btnG is the name of the Search
button

#puts  Expected Result:
#puts   A Google page with results should be shown. 'Programming
Ruby' should be high on the list.

#puts  Actual Result:
if ie.text.include? Programming Ruby
  r.addtoReport(testReport, Test Passed. Found the test string:
'Programming Ruby'. Actual Results match Expected Results.)
else
 r.addtoReport(testReport,Test Failed! Could not find: 'Programming
Ruby'. )
end

puts End of test: Google search.
#close Browser
browser.close
#finish the report
r.finishReport(testReport)
rescue
#send crash info to report
r.addtoReport(testReport,'Test crashed with reason '$!, 'Failed',
'Test Crashed!')
#finish the report
r.finishReport(testReport)
end

Thanks
Smita

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problem displaying XML file with XSL in Firefox and Safari

2009-01-29 Thread Tiffany Fodor

I've updated my example harness in the wiki to include a stylesheet
with this fix.  I've verified that it works with IE, Firefox, and
Opera, but I don't have Safari installed anywhere.

If anyone is interested in using ci_reporter to report test results,
you can find an example of how to use it here:

http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Database+Verifications

-Tiffany


On Jan 29, 4:42 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Hey Jim!

 I found a conditional you can add to the stylesheet so you can view
 the results in Firefox.  If you add this line of code to the
 stylesheet after line 2, it works for me.

 xsl:if test=system-property('xsl:vendor')='Transformiix'/xsl:if

 I can post a new stylesheet to the wiki.

 Hope this helps!

 -Tiffany

 On Jan 29, 4:02 pm, Jim Matthews jim_m...@swbell.net wrote:

  I am using ci_reporter to produce XML output from test runs from Watir
  tests.

  Tiffany supplied an XLS file to reference in the XML file, which works
  fine in IE.  The problem is that when you try to view the XML file in
  Firefox or Safari, the file looks like raw XML.

  I was wondering if anyone had a similar experience with XLS and knew
  if you had to do something different to get it to work with Firefox or
  Safari.  If you would like to see what is happening, you can goto:

 http://www.watirbuild.com/builds/watir/1681.3

  Jim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Tiffany Fodor

Hi!

Just curious

Have you tried this with a regular command prompt to rule out problems
with your Watir/Ruby installation?  We've successfully run Watir with
Cygwin on XP here, but I don't recall having to do anything special to
get it to work.

-Tiffany

On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:
 Hi Sai - Yes I did check the permissions, and searched the newsgroups
 for possible solutions.  I tried running Watir on different cygwin
 platforms w/o success.

 Could the bug be tied to a certain version of ruby??

 On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

  Not sure how many have tried Watir with Cygwin but your problem seems
  to be a permission one.
  Can you try to change the permission by doing a chmod and check if it
  is working?

  Also has anyone faced any problems in using Watir with PowerShell?

  Regards,
  Sai

  On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

   Watir doesn't work for me.  Sadly ironic, for a regression test
   tool...

   Platform: WinXP / Cygwin
   Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
   Watir 1.6.2

   Here's what I do:
   - gem install watir
   - irb

require 'watir'
   = true
x = Watir::IE.new

   LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
   lib/watir
   /win32ole/win32ole.so
           from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
   win32ole/win32ole
   .so
           from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `requi
   re'
           from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
   win32ole.rb:5
           from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `gem_o
   riginal_require'
           from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `requi
   re'
           from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
   38
           from (irb):2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

What do you mean by a 'regular command prompt'??  (I will try it, once
I understand what you have in mind!!)  I did try using Watir inside of
a cucumber step but it failed with the same messages I get in irb.

Tiffany - what version of ruby are you using??  I am using:
a...@ipon ~ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]


On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:
 Hi!

 Just curious

 Have you tried this with a regular command prompt to rule out problems
 with your Watir/Ruby installation?  We've successfully run Watir with
 Cygwin on XP here, but I don't recall having to do anything special to
 get it to work.

 -Tiffany

 On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

  Hi Sai - Yes I did check the permissions, and searched the newsgroups
  for possible solutions.  I tried running Watir on different cygwin
  platforms w/o success.

  Could the bug be tied to a certain version of ruby??

  On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

   Not sure how many have tried Watir with Cygwin but your problem seems
   to be a permission one.
   Can you try to change the permission by doing a chmod and check if it
   is working?

   Also has anyone faced any problems in using Watir with PowerShell?

   Regards,
   Sai

   On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

Watir doesn't work for me.  Sadly ironic, for a regression test
tool...

Platform: WinXP / Cygwin
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
Watir 1.6.2

Here's what I do:
- gem install watir
- irb

 require 'watir'
= true
 x = Watir::IE.new

LoadError: Permission denied - /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
lib/watir
/win32ole/win32ole.so
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole/win32ole
.so
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole.rb:5
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_o
riginal_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
38
        from (irb):2


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Al Snow

Arco,

What OS are you running under?

I am setting up stuff on Vista (InstantRails and Watir) and found
that most things worked from administrator login, but some did
not work as regular login. Suggest try opening Cygwin window
as administrator by right click on the Cygwin icon
(Run as administrator) to open the window.

Good Luck,
Al Snow

On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:
 What do you mean by a 'regular command prompt'??  (I will try it, once
 I understand what you have in mind!!)  I did try using Watir inside of
 a cucumber step but it failed with the same messages I get in irb.

 Tiffany - what version of ruby are you using??  I am using:
     a...@ipon ~ ruby -v
     ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

 On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

  Hi!

  Just curious

  Have you tried this with a regular command prompt to rule out problems
  with your Watir/Ruby installation?  We've successfully run Watir with
  Cygwin on XP here, but I don't recall having to do anything special to
  get it to work.

  -Tiffany

  On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

   Hi Sai - Yes I did check the permissions, and searched the newsgroups
   for possible solutions.  I tried running Watir on different cygwin
   platforms w/o success.

   Could the bug be tied to a certain version of ruby??

   On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

Not sure how many have tried Watir with Cygwin but your problem seems
to be a permission one.
Can you try to change the permission by doing a chmod and check if it
is working?

Also has anyone faced any problems in using Watir with PowerShell?

Regards,
Sai

On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

 Watir doesn't work for me.  Sadly ironic, for a regression test
 tool...

 Platform: WinXP / Cygwin
 Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
 Watir 1.6.2

 Here's what I do:
 - gem install watir
 - irb

  require 'watir'
 = true
  x = Watir::IE.new

 LoadError: Permission denied - 
 /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
 lib/watir
 /win32ole/win32ole.so
         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole/win32ole
 .so
         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole.rb:5
         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `gem_o
 riginal_require'
         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
         from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
 38
         from (irb):2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

Hi Al - thanks for your suggestion.
I am running Cygwin on XP.
I tried running as administrator. (didn't know you could do that!!)
I got the same error message as I got when running under my userid.

On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:
 Arco,

 What OS are you running under?

 I am setting up stuff on Vista (InstantRails and Watir) and found
 that most things worked from administrator login, but some did
 not work as regular login. Suggest try opening Cygwin window
 as administrator by right click on the Cygwin icon
 (Run as administrator) to open the window.

 Good Luck,
 Al Snow

 On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:

  What do you mean by a 'regular command prompt'??  (I will try it, once
  I understand what you have in mind!!)  I did try using Watir inside of
  a cucumber step but it failed with the same messages I get in irb.

  Tiffany - what version of ruby are you using??  I am using:
      a...@ipon ~ ruby -v
      ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

  On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

   Hi!

   Just curious

   Have you tried this with a regular command prompt to rule out problems
   with your Watir/Ruby installation?  We've successfully run Watir with
   Cygwin on XP here, but I don't recall having to do anything special to
   get it to work.

   -Tiffany

   On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

Hi Sai - Yes I did check the permissions, and searched the newsgroups
for possible solutions.  I tried running Watir on different cygwin
platforms w/o success.

Could the bug be tied to a certain version of ruby??

On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

 Not sure how many have tried Watir with Cygwin but your problem seems
 to be a permission one.
 Can you try to change the permission by doing a chmod and check if it
 is working?

 Also has anyone faced any problems in using Watir with PowerShell?

 Regards,
 Sai

 On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

  Watir doesn't work for me.  Sadly ironic, for a regression test
  tool...

  Platform: WinXP / Cygwin
  Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
  Watir 1.6.2

  Here's what I do:
  - gem install watir
  - irb

   require 'watir'
  = true
   x = Watir::IE.new

  LoadError: Permission denied - 
  /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
  lib/watir
  /win32ole/win32ole.so
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole/win32ole
  .so
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole.rb:5
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `gem_o
  riginal_require'
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from 
  /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
  38
          from (irb):2


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Al Snow

Arco,

 x = Watir::IE.new

Bret's Blog on Watir 1.6.2: 
http://www.io.com/~wazmo/blog/archives/2008_11.html#000288

New way to do Watir::IE.new is x = Watir::Browser.new.

Maybe the file's group is wrong. It says None in the Pastie.

Cheers,
Al Snow

On Jan 29, 8:13 pm, Arco akl...@gmail.com wrote:
 Hi Al - thanks for your suggestion.
 I am running Cygwin on XP.
 I tried running as administrator. (didn't know you could do that!!)
 I got the same error message as I got when running under my userid.

 On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:

  Arco,

  What OS are you running under?

  I am setting up stuff on Vista (InstantRails and Watir) and found
  that most things worked from administrator login, but some did
  not work as regular login. Suggest try opening Cygwin window
  as administrator by right click on the Cygwin icon
  (Run as administrator) to open the window.

  Good Luck,
  Al Snow

  On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:

   What do you mean by a 'regular command prompt'??  (I will try it, once
   I understand what you have in mind!!)  I did try using Watir inside of
   a cucumber step but it failed with the same messages I get in irb.

   Tiffany - what version of ruby are you using??  I am using:
       a...@ipon ~ ruby -v
       ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

   On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

Hi!

Just curious

Have you tried this with a regular command prompt to rule out problems
with your Watir/Ruby installation?  We've successfully run Watir with
Cygwin on XP here, but I don't recall having to do anything special to
get it to work.

-Tiffany

On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

 Hi Sai - Yes I did check the permissions, and searched the newsgroups
 for possible solutions.  I tried running Watir on different cygwin
 platforms w/o success.

 Could the bug be tied to a certain version of ruby??

 On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

  Not sure how many have tried Watir with Cygwin but your problem 
  seems
  to be a permission one.
  Can you try to change the permission by doing a chmod and check if 
  it
  is working?

  Also has anyone faced any problems in using Watir with PowerShell?

  Regards,
  Sai

  On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

   Watir doesn't work for me.  Sadly ironic, for a regression test
   tool...

   Platform: WinXP / Cygwin
   Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
   Watir 1.6.2

   Here's what I do:
   - gem install watir
   - irb

require 'watir'
   = true
x = Watir::IE.new

   LoadError: Permission denied - 
   /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
   lib/watir
   /win32ole/win32ole.so
           from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
   win32ole/win32ole
   .so
           from 
   /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `requi
   re'
           from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
   win32ole.rb:5
           from 
   /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `gem_o
   riginal_require'
           from 
   /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
   31:in `requi
   re'
           from 
   /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
   38
           from (irb):2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

Hi Al -

When I try using 'x = Watir::Browser.new', I get a different error
message:
NameError: (eval):1:in `klass': uninitialized constant Watir::IE

Here is a link to the complete text of the error - http://pastie.org/374843

thanks, arco


On Jan 29, 5:40 pm, Al Snow jasn...@gmail.com wrote:
 Arco,

  x = Watir::IE.new

 Bret's Blog on Watir 
 1.6.2:http://www.io.com/~wazmo/blog/archives/2008_11.html#000288

 New way to do Watir::IE.new is x = Watir::Browser.new.

 Maybe the file's group is wrong. It says None in the Pastie.

 Cheers,
 Al Snow

 On Jan 29, 8:13 pm, Arco akl...@gmail.com wrote:

  Hi Al - thanks for your suggestion.
  I am running Cygwin on XP.
  I tried running as administrator. (didn't know you could do that!!)
  I got the same error message as I got when running under my userid.

  On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:

   Arco,

   What OS are you running under?

   I am setting up stuff on Vista (InstantRails and Watir) and found
   that most things worked from administrator login, but some did
   not work as regular login. Suggest try opening Cygwin window
   as administrator by right click on the Cygwin icon
   (Run as administrator) to open the window.

   Good Luck,
   Al Snow

   On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:

What do you mean by a 'regular command prompt'??  (I will try it, once
I understand what you have in mind!!)  I did try using Watir inside of
a cucumber step but it failed with the same messages I get in irb.

Tiffany - what version of ruby are you using??  I am using:
    a...@ipon ~ ruby -v
    ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

 Hi!

 Just curious

 Have you tried this with a regular command prompt to rule out problems
 with your Watir/Ruby installation?  We've successfully run Watir with
 Cygwin on XP here, but I don't recall having to do anything special to
 get it to work.

 -Tiffany

 On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

  Hi Sai - Yes I did check the permissions, and searched the 
  newsgroups
  for possible solutions.  I tried running Watir on different cygwin
  platforms w/o success.

  Could the bug be tied to a certain version of ruby??

  On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

   Not sure how many have tried Watir with Cygwin but your problem 
   seems
   to be a permission one.
   Can you try to change the permission by doing a chmod and check 
   if it
   is working?

   Also has anyone faced any problems in using Watir with PowerShell?

   Regards,
   Sai

   On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

Watir doesn't work for me.  Sadly ironic, for a regression test
tool...

Platform: WinXP / Cygwin
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
Watir 1.6.2

Here's what I do:
- gem install watir
- irb

 require 'watir'
= true
 x = Watir::IE.new

LoadError: Permission denied - 
/usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
lib/watir
/win32ole/win32ole.so
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole/win32ole
.so
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole.rb:5
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_o
riginal_require'
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from 
/usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
38
        from (irb):2


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

Couple of other things:

1) I looked at your question about the 'group' setting for
win32ole.so.  I changed it's group to 'Users', re-ran the IRB session
and got the same error.

2) I had a look at Brett's blog posting - looks like the 'x =
Watir::IE.new' format is still supported.  If I can get this working
I'd be comfortable using that style rather than the new
'Watir::Browser.new' style.


On Jan 29, 5:40 pm, Al Snow jasn...@gmail.com wrote:
 Arco,

  x = Watir::IE.new

 Bret's Blog on Watir 
 1.6.2:http://www.io.com/~wazmo/blog/archives/2008_11.html#000288

 New way to do Watir::IE.new is x = Watir::Browser.new.

 Maybe the file's group is wrong. It says None in the Pastie.

 Cheers,
 Al Snow

 On Jan 29, 8:13 pm, Arco akl...@gmail.com wrote:

  Hi Al - thanks for your suggestion.
  I am running Cygwin on XP.
  I tried running as administrator. (didn't know you could do that!!)
  I got the same error message as I got when running under my userid.

  On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:

   Arco,

   What OS are you running under?

   I am setting up stuff on Vista (InstantRails and Watir) and found
   that most things worked from administrator login, but some did
   not work as regular login. Suggest try opening Cygwin window
   as administrator by right click on the Cygwin icon
   (Run as administrator) to open the window.

   Good Luck,
   Al Snow

   On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:

What do you mean by a 'regular command prompt'??  (I will try it, once
I understand what you have in mind!!)  I did try using Watir inside of
a cucumber step but it failed with the same messages I get in irb.

Tiffany - what version of ruby are you using??  I am using:
    a...@ipon ~ ruby -v
    ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

 Hi!

 Just curious

 Have you tried this with a regular command prompt to rule out problems
 with your Watir/Ruby installation?  We've successfully run Watir with
 Cygwin on XP here, but I don't recall having to do anything special to
 get it to work.

 -Tiffany

 On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

  Hi Sai - Yes I did check the permissions, and searched the 
  newsgroups
  for possible solutions.  I tried running Watir on different cygwin
  platforms w/o success.

  Could the bug be tied to a certain version of ruby??

  On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

   Not sure how many have tried Watir with Cygwin but your problem 
   seems
   to be a permission one.
   Can you try to change the permission by doing a chmod and check 
   if it
   is working?

   Also has anyone faced any problems in using Watir with PowerShell?

   Regards,
   Sai

   On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

Watir doesn't work for me.  Sadly ironic, for a regression test
tool...

Platform: WinXP / Cygwin
Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
Watir 1.6.2

Here's what I do:
- gem install watir
- irb

 require 'watir'
= true
 x = Watir::IE.new

LoadError: Permission denied - 
/usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
lib/watir
/win32ole/win32ole.so
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole/win32ole
.so
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
win32ole.rb:5
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_o
riginal_require'
        from 
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `requi
re'
        from 
/usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
38
        from (irb):2


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: scripts for IE and Firefox both

2009-01-29 Thread Lisa Crispin
Thanks, Bret. I was hoping to make it work with Firefox on the mac,
actually. But it sounds like that's a non starter.

I will pursue these issues more with my team!
thanks
Lisa

On Thu, Jan 29, 2009 at 7:50 PM, Bret Pettichord b...@pettichord.comwrote:


 Lisa,

 The problem with your code is that it is specific to both Windows and
 IE. Making it work with Firefox on Windows is a medium sized problem,
 but it still wouldn't help your developers with their macs. Off hand, I
 wouldn't know how to start on getting this work on other platforms.

 And yes, these kinds of dialogs are somewhat weird. Few apps use them
 today, they are considered poor design. Nowadays developers get the same
 effect using lighboxes which end up being modal according the strict
 definition of modal, but the look better. And they are fairly easy to
 handle with Watir on both IE and Firefox (on Windows and Macs).

 Bret

 Lisa Crispin wrote:
  To clarify - our Watir scripts handle our modal dialogs in IE just
  fine. For example:
  def click_modal_button(ie, type='OK', sleep_time=6, timeout=20)
  hwnd = ie.enabled_popup(sleep_time)
  if (hwnd)
w = WinClicker.new
w.clickWindowsButton_hwnd( hwnd, #{type})
w=nil
  end
end
 
  I'm looking for affirmation that we will never be able to get these
  scripts to work with modal dialogs in Firefox unless the test
  automation fairy turns me into some better kind of programmer and I
  can add this functionality to Watir myself.
 
  I'm puzzled though - are modal dialogs weird? Do most apps not use
  them? What do you use instead?
  thanks
  Lisa
 
  On Thu, Jan 29, 2009 at 4:35 PM, Paul Rogers paul.rog...@shaw.ca
  mailto:paul.rog...@shaw.ca wrote:
 
 
  ok, modal dialogs are a different beast entirely.
 
  I dont have a need for dialog support right now, and am working on
  drag and drop support in watir.
 
  If you are only require ing this on windows, you might want to look
  into autoit - if you want cros platform, no idea.
 
  Paul
 
 
 
  On Thu, Jan 29, 2009 at 3:49 PM, Lisa Crispin
  lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com wrote:
   I guess I mean regular js pop up boxes. A modal dialog window
  that pops up
   and you have to click ok to keep going. They look the same in
  firefox as
   in IE.
   Lisa
  
   On Thu, Jan 29, 2009 at 3:42 PM, Paul Rogers
  paul.rog...@shaw.ca mailto:paul.rog...@shaw.ca wrote:
  
   what do you use in Firefox for the modaldialogs?
  
   or do you mean regular js pop up boxes?
  
   Paul
  
   On Thu, Jan 29, 2009 at 3:18 PM, Lisa Crispin
  lisa.cris...@gmail.com mailto:lisa.cris...@gmail.com
   wrote:
Hi, I hope this isn't too annoying of a question. I'm just
  trying to
decide
our next steps wrt Watir and our test automation. I just
  thought I'd
double
check on what I think I know already.
   
I spent the last several weeks getting our Watir suites
  working with v.
1.6.2 and Vista. I finally beat them into submission, and I'm
  exhausted.
(This is not a reflection on Watir, but probably on the
  design of our
scripts, and definitely on my lack of expertise).
   
My ultimate goal was to get these scripts working with
  Firefox also, and
I
had some hope when I first read about 1.6.2 that this would
  be possible.
However, I recall that Bret replied to one of my emails
  relating to
dealing
with modal dialogs this way:
   
I'm saying that I do not have a plan on how to support modal
  dialog
testing that will work with both IE and Firefox, and as far
  as I know,
no one else is working on this.
   
I'm wondering if this means we should abandon all hope of
  ever being
able to
run our scripts against Firefox (which would make them a lot
  easier to
integrate with our build process, as well as easier for the
  developers
who
all use Macs to run them to help with their own testing)?
   
The developers could run the scripts on their Parallels or
  VMWare, but
the
scripts run very slowly there for some reason. Should we be
  thinking
about
migrating to a different browser driver if we want to have
  scripts that
everyone can use to help with testing? We have good tools for
 our
automated
regression tests, and I guess we could adapt those tests to
  do the same
purpose of Watir, it just happened that it was the Watir
  scripts that
got
all the good flexibility that make them handy for setting up
 test
scenarios.
   
Do other people have automated scripts to help with
  exploratory testing
and
manual 

[wtr-general] Watir Bug on Cygwin: Diagnosis and Workaround

2009-01-29 Thread Arco

On Cygwin, I ran into two separate problems that prevented Watir 1.6.2
from working.

First, the 'win32ole.so' file that ships with Watir appears to be
incompatible with the version that is installed with my copy of Cygwin-
ruby. (see http://pastie.org/374756)

An error message 'bad file permissions' was generated when trying to
run  'x = Watir::IE.new' from within IRB.

My workaround was to copy the 'ruby' version of win32ole.so into the
'watir' directories.  (see http://pastie.org/374865)

Once this was done, another error occured - relating to modal
dialogs.  (see http://pastie.org/374865)

This was fixed by commenting out 2 lines in the Watir source code:

File - modal_dialog.rbLine - 65   GetUnknown.call ...
win32.rb:6 GetUnknown = Win32API.new(...

Once these lines were commented out, watir worked.

Ideas for fixes:
- Fix the modal dialog issue with conditional execution:
GetUnknown.call (...) unless  RUBY_PLATFORM == 'i386-
cygwin'
GetUnknown=Win32APUI.new(...   unless RUBY_PLATFORM ==
'i386-cygwin'
- Fix the win32ole issue by not bundling this file in the gem (??)
- Cygwin support:
  either fully commit to supporting cygwin, or not
   I think it should be supported!!!
   run regression tests on cygwin before every release
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Bret Pettichord

I agree with #2. Watir::IE.new should be fine.

I'm also 99% sure you don't even need the win32ole.so file (it is only 
needed for showModalDialog support). There is a line in the watir code 
that loads this file (instead of the standard win32ole.so file that 
comes with ruby).

So I suggest modifying watir so that it doesnot even try to load this 
file. I need to run, but maybe someone else can help you with this.

Bret

Arco wrote:
 Couple of other things:

 1) I looked at your question about the 'group' setting for
 win32ole.so.  I changed it's group to 'Users', re-ran the IRB session
 and got the same error.

 2) I had a look at Brett's blog posting - looks like the 'x =
 Watir::IE.new' format is still supported.  If I can get this working
 I'd be comfortable using that style rather than the new
 'Watir::Browser.new' style.


 On Jan 29, 5:40 pm, Al Snow jasn...@gmail.com wrote:
   
 Arco,

 
 x = Watir::IE.new
 
 Bret's Blog on Watir 
 1.6.2:http://www.io.com/~wazmo/blog/archives/2008_11.html#000288

 New way to do Watir::IE.new is x = Watir::Browser.new.

 Maybe the file's group is wrong. It says None in the Pastie.

 Cheers,
 Al Snow

 On Jan 29, 8:13 pm, Arco akl...@gmail.com wrote:

 
 Hi Al - thanks for your suggestion.
 I am running Cygwin on XP.
 I tried running as administrator. (didn't know you could do that!!)
 I got the same error message as I got when running under my userid.
   
 On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:
   
 Arco,
 
 What OS are you running under?
 
 I am setting up stuff on Vista (InstantRails and Watir) and found
 that most things worked from administrator login, but some did
 not work as regular login. Suggest try opening Cygwin window
 as administrator by right click on the Cygwin icon
 (Run as administrator) to open the window.
 
 Good Luck,
 Al Snow
 
 On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:
 
 What do you mean by a 'regular command prompt'??  (I will try it, once
 I understand what you have in mind!!)  I did try using Watir inside of
 a cucumber step but it failed with the same messages I get in irb.
   
 Tiffany - what version of ruby are you using??  I am using:
 a...@ipon ~ ruby -v
 ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
   
 On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:
   
 Hi!
 
 Just curious
 
 Have you tried this with a regular command prompt to rule out problems
 with your Watir/Ruby installation?  We've successfully run Watir with
 Cygwin on XP here, but I don't recall having to do anything special to
 get it to work.
 
 -Tiffany
 
 On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:
 
 Hi Sai - Yes I did check the permissions, and searched the newsgroups
 for possible solutions.  I tried running Watir on different cygwin
 platforms w/o success.
   
 Could the bug be tied to a certain version of ruby??
   
 On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:
   
 Not sure how many have tried Watir with Cygwin but your problem seems
 to be a permission one.
 Can you try to change the permission by doing a chmod and check if it
 is working?
 
 Also has anyone faced any problems in using Watir with PowerShell?
 
 Regards,
 Sai
 
 On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:
 
 Watir doesn't work for me.  Sadly ironic, for a regression test
 tool...
   
 Platform: WinXP / Cygwin
 Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
 Watir 1.6.2
   
 Here's what I do:
 - gem install watir
 - irb
   
 require 'watir'
   
 = true
   
 x = Watir::IE.new
   
 LoadError: Permission denied - 
 /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
 lib/watir
 /win32ole/win32ole.so
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole/win32ole
 .so
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 win32ole.rb:5
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `gem_o
 riginal_require'
 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
 31:in `requi
 re'
 from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
 38
 from (irb):2
   
 
 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more 

[wtr-general] Re: Including watir in ruby program

2009-01-29 Thread Matt

Looks like you forgot to capitalize the module name in your include
statement.  include watir is incorrect, try include Watir, or even
better remove the line altogether and use Watir::IE to get to the IE
class.

require 'rubygems'
require 'watir'

test_site = http://www.google.com/;

ie = Watir::IE.new
ie.goto test_site

That's how I would do it.

On Jan 29, 5:21 am, malar malar.je...@gmail.com wrote:
 Hi,
 I successfully Installed  Ruby 186.26   and watir-1.6.2  common watir
 1.6.2.
 I set the proxy value too.
 But I am not able to run my program. My coding as follows

 require 'rubygems'
 require 'watir'
 include watir

 Test-site=http://www.google.com/

 ie=IE.new
 ie.goto Test-site

 …….

   I am getting “undefined local variable or method `watir' for
 main:Object (NameError)” error when I run this code..

 If I remove “include watir” line from the code

 I get an error” uninitialized constant IE (NameError)”

 What’s the problem?

 Please help me…

  Thanks in Advance,
 malar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir doesn't work under cygwin

2009-01-29 Thread Arco

Brett:  If you believe the win32ole.so fix is simple, please please
fix the core code so we don't have to hack watir every time a new
release comes out.  I'm running the Watir on multiple machines and
there is a big overhead to editing the code directly in the field.

Also please fix the modal dialog errors, which are documented here.
http://groups.google.com/group/watir-general/browse_frm/thread/70eb6f6d6c865d64

The fix is trivial - just append unless RUBY_PLATFORM = 'i386-
cygwin' to a couple of lines.

Cygwin is an important platform and I know that others will benefit -
just this evening I was corresponding with 2 other cygwin users that
have been hit by the same bugs...

Thanks!

On Jan 29, 8:10 pm, Bret Pettichord b...@pettichord.com wrote:
 I agree with #2. Watir::IE.new should be fine.

 I'm also 99% sure you don't even need the win32ole.so file (it is only
 needed for showModalDialog support). There is a line in the watir code
 that loads this file (instead of the standard win32ole.so file that
 comes with ruby).

 So I suggest modifying watir so that it doesnot even try to load this
 file. I need to run, but maybe someone else can help you with this.

 Bret

 Arco wrote:
  Couple of other things:

  1) I looked at your question about the 'group' setting for
  win32ole.so.  I changed it's group to 'Users', re-ran the IRB session
  and got the same error.

  2) I had a look at Brett's blog posting - looks like the 'x =
  Watir::IE.new' format is still supported.  If I can get this working
  I'd be comfortable using that style rather than the new
  'Watir::Browser.new' style.

  On Jan 29, 5:40 pm, Al Snow jasn...@gmail.com wrote:

  Arco,

  x = Watir::IE.new

  Bret's Blog on Watir 
  1.6.2:http://www.io.com/~wazmo/blog/archives/2008_11.html#000288

  New way to do Watir::IE.new is x = Watir::Browser.new.

  Maybe the file's group is wrong. It says None in the Pastie.

  Cheers,
  Al Snow

  On Jan 29, 8:13 pm, Arco akl...@gmail.com wrote:

  Hi Al - thanks for your suggestion.
  I am running Cygwin on XP.
  I tried running as administrator. (didn't know you could do that!!)
  I got the same error message as I got when running under my userid.

  On Jan 29, 5:03 pm, Al Snow jasn...@gmail.com wrote:

  Arco,

  What OS are you running under?

  I am setting up stuff on Vista (InstantRails and Watir) and found
  that most things worked from administrator login, but some did
  not work as regular login. Suggest try opening Cygwin window
  as administrator by right click on the Cygwin icon
  (Run as administrator) to open the window.

  Good Luck,
  Al Snow

  On Jan 29, 7:49 pm, Arco akl...@gmail.com wrote:

  What do you mean by a 'regular command prompt'??  (I will try it, once
  I understand what you have in mind!!)  I did try using Watir inside of
  a cucumber step but it failed with the same messages I get in irb.

  Tiffany - what version of ruby are you using??  I am using:
      a...@ipon ~ ruby -v
      ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

  On Jan 29, 4:34 pm, Tiffany Fodor tcfo...@comcast.net wrote:

  Hi!

  Just curious

  Have you tried this with a regular command prompt to rule out problems
  with your Watir/Ruby installation?  We've successfully run Watir with
  Cygwin on XP here, but I don't recall having to do anything special to
  get it to work.

  -Tiffany

  On Jan 29, 7:55 am, Arco akl...@gmail.com wrote:

  Hi Sai - Yes I did check the permissions, and searched the newsgroups
  for possible solutions.  I tried running Watir on different cygwin
  platforms w/o success.

  Could the bug be tied to a certain version of ruby??

  On Jan 28, 1:53 am, sai saidesertrose2...@gmail.com wrote:

  Not sure how many have tried Watir with Cygwin but your problem seems
  to be a permission one.
  Can you try to change the permission by doing a chmod and check if it
  is working?

  Also has anyone faced any problems in using Watir with PowerShell?

  Regards,
  Sai

  On Jan 27, 6:19 pm, Arco akl...@gmail.com wrote:

  Watir doesn't work for me.  Sadly ironic, for a regression test
  tool...

  Platform: WinXP / Cygwin
  Ruby: ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
  Watir 1.6.2

  Here's what I do:
  - gem install watir
  - irb

  require 'watir'

  = true

  x = Watir::IE.new

  LoadError: Permission denied - 
  /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/
  lib/watir
  /win32ole/win32ole.so
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole/win32ole
  .so
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
  win32ole.rb:5
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `gem_o
  riginal_require'
          from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
  31:in `requi
  re'
          from 
  /usr/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:
  38
          from (irb):2



[wtr-general] Re: QA Position Available w/ Watir

2009-01-29 Thread Chris

I've tried getting people in working remote before
 that I know and respect... no dice.

Dude, you *still* haven't gotten those HR people fired?  :-)
-C
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: QA Position Available w/ Watir

2009-01-29 Thread Chris


 LOL!

 Nice to see you around Chris, hope all's well at Socialtext HQ!

Things are smokin' at ST HQ.  We are coming up on 10,000 test steps;
that is, 10,000 assertions of behavior at the UI level.
Unfortunately, we're using Selenium :-).   FWIW, we have a little more
than 12,000  assertions at the unit/integration level.  The purpose of
all this automation, of course, is to allow testers to examine
interesting parts of the application.  Closely. At their leisure. With
their eyeballs.

If it's any consolation though, the CI-like testrunner script that
checks out code, creates a test env, runs the tests, and reports the
results: is all Ruby.  As are the exploratory API tools.  I like me
some Ruby.

Congratulations to all the Watirfolk on all the great integrations in
recent times.  I applaud you all.

-C
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Unable to work with IFrame

2009-01-29 Thread Niharika Patro
Hi Michael,
Thanks for providing a quick solution. I tried out this, but its still not
working:

Even though the iframe is existing, the following code is returning false:

puts (@@browser.frame(loginframe).exists?())

Output: false

Any idea, what could be the issue here?

Regards
Niharika

On Thu, Jan 29, 2009 at 11:00 PM, Michael Hwee michael_h...@yahoo.comwrote:

 frame does not support exists?().

 However, you can *monkey-patch* as followed.

 module Watir
   class Frame
 alias_method :_locate, :locate
 def locate
   begin
 return _locate
   rescue
 return nil
   end
 end
 def exists?
   return @o != nil
 end
   end
 end

 Michael

 --
 *From:* Niharika Patro niharikapa...@gmail.com
 *To:* watir-general@googlegroups.com
 *Sent:* Thursday, January 29, 2009 4:57:13 AM
 *Subject:* [wtr-general] Unable to work with IFrame

 Hi,

 In my application, when I click on a link it opens a Iframe.

 I am trying to verify whether the iframe appears or not with the following
 code:


 @@browser
 .frame(loginframe).exist?() or @@browser.frame(:id, loginframe).exist?()


 It throws the following error:

 test_au_in_utility_panel(VideoPortal_Commenting_Notify):

 Watir::Exception::UnknownFrameException: Unable to locate a frame with name
 loginframe

  Please help in handling this.

 Regards

 Niharika






 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---