Re: [wtr-general] already initialized constant

2012-06-22 Thread John Cena
Thanks for the links. I guess I can improve my cucumber skills with this. On Thursday, June 21, 2012 10:42:07 AM UTC-4, Oscar.Rieken wrote: > > > Here is a really simple post i wrote up to get some of my team members up > to speed with the basic idea of how to use cucumber and watir-webdriver.

Re: [wtr-general] already initialized constant

2012-06-22 Thread John Cena
Got it. There was something wrong in cucumber. Thanks for your help. Appreciate it. On Thursday, June 21, 2012 10:30:38 AM UTC-4, Željko Filipin wrote: > > On Thu, Jun 21, 2012 at 3:12 PM, John Cena wrote: > > I tried to execute a simple Ruby code!!! It works fine. > > So the problem is in cucum

Re: [wtr-general] already initialized constant

2012-06-21 Thread Oscar Rieken
Here is a really simple post i wrote up to get some of my team members up to speed with the basic idea of how to use cucumber and watir-webdriver. This may help you some http://thechort.com/blog/2012/03/01/automated-testing-from-the-beginning/ http://thechort.com/blog/2012/03/03/automated-testing-

Re: [wtr-general] already initialized constant

2012-06-21 Thread Željko Filipin
On Thu, Jun 21, 2012 at 3:12 PM, John Cena wrote: > I tried to execute a simple Ruby code!!! It works fine. So the problem is in cucumber setup then. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http:

Re: [wtr-general] already initialized constant

2012-06-21 Thread John Cena
I tried to execute a simple Ruby code!!! It works fine. On Thursday, June 21, 2012 3:54:35 AM UTC-4, Željko Filipin wrote: > > On Wed, Jun 20, 2012 at 5:11 PM, Pavak Shah > wrote: > > When I remove require 'win32ole' > >include Watir, > > It gives "Using the default Pro

Re: [wtr-general] already initialized constant

2012-06-21 Thread Željko Filipin
On Wed, Jun 20, 2012 at 5:11 PM, Pavak Shah wrote: > When I remove require 'win32ole' >include Watir, > It gives "Using the default Profile..." line as a infinite loop. Create a script that will just execute Watir code, without Cucumber. Do you know how to do that? Željk

Re: [wtr-general] already initialized constant

2012-06-20 Thread Pavak Shah
Thanks for the advice. I am a newbee in Cucumber/Watir. I will look into the book/ presentation. but can you please help me with the problem. Do you think is it because the way I am writing my cucumber tests? On Wed, Jun 20, 2012 at 3:01 PM, Chuck van der Linden wrote: > Side note: if you have s

Re: [wtr-general] already initialized constant

2012-06-20 Thread Chuck van der Linden
Side note: if you have steps like 'given I open a browser' you likely are writing very imperative tests which is not the best way to use cucumber. If you have not done so, I'd advise purchasing and reading "The Cucumber Book" from Pragmatic Programmers. it will get you off onto the right foo

Re: [wtr-general] already initialized constant

2012-06-20 Thread Pavak Shah
Thanks for the quick response. When I remove require 'win32ole' include Watir, It gives "Using the default Profile..." line as a infinite loop. On Wed, Jun 20, 2012 at 9:29 AM, Željko Filipin wrote: > On Wed, Jun 20, 2012 at 3:10 PM, John Cena wrote: > > require 'win3

Re: [wtr-general] already initialized constant

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 3:10 PM, John Cena wrote: > require 'win32ole' > include Watir Remove this two lines from env.rb and try again. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.googl

Re: [wtr-general] already initialized constant

2012-06-20 Thread John Cena
Thanks for your response. Here is what i have in my env.rb file require "rubygems" require 'win32ole' require 'watir-webdriver' include Watir Here is the sample source code. Given /^I open a browser$/ do #Watir::Browser.default = $bro $browser = Watir::Browser.new :firefox end Given /^Na

Re: [wtr-general] already initialized constant

2012-06-20 Thread Željko Filipin
On Tue, Jun 19, 2012 at 9:10 PM, John Cena wrote: > I am getting "already initialized constant VERSION superclass mismatch for class UnknownObjectException." Looks like you have several problems here. Please post minimal amount of code that still reproduces the error. Željko -- filipin.eu -- B

[wtr-general] already initialized constant

2012-06-20 Thread John Cena
Hey, I am using Cucumber/Watir for my automation. When I try to run any feature file through command prompt, I am getting "already initialized constant VERSION superclass mismatch for class UnknownObjectException." The reason why I go to command prompt is because, I am not able to run my test

[wtr-general] already initialized constant ATTACHER

2008-11-10 Thread aidy lewis
Hi, Does anyone know why I would get this: Watir.rb:113: warning: already initialized constant ATTACHER ? Thanks Aidy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group,