If you do anything relatively slow in a Before hook, like starting up
a browser, for example, the default timeout won't be adequate. You can
before_scenario message timeout. The following seems to work well for
Post by Nat BalaHi Ben,
  Thanks for your feedback.  I just removed my WatiN reference in my
class file and included the selenium references. Â I am getting the
time out error when I try to run the ckue4nuke.
  Before executing this command I manually start the Selenium-RC
server, I see the Selenium-RC window getting launched and the browser
trying to connect to the google.com website
  and then, I am getting this error and it stops.  I really
appreciate all your help on this...!
  Here is the actual error message...
= = = = = = = = = = = = = = = = = = = = = = =
â©ââFeature: Google search
  In order find things on the internet
  As a user
  I want to search for web pages with particular text in them
 Scenario: Load search page
Timed out calling wire server with message
'begin_scenario' (Timeout::Error)
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:39:in `fetch_data_from_socket'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/c
onnection.rb:20:in `call_remote'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/r
equest_handler.rb:10:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol/requests.rb:92:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_protocol.rb:34:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
wire_support/w
ire_language.rb:50:in `begin_scenario'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
language_suppo
rt/language_methods.rb:12:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:296:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:295:in `before'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/
step_mother.rb
:277:in `before_and_after'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:45:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:100:in `with_visitor'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
scenario.r
b:39:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:51:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:50:in `visit_feature_element'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:25:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
feature.rb
:24:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:20:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:19:in `visit_feature'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:29:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:17:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
features.r
b:28:in `accept'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:14:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:180:in `broadcast'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/ast/
tree_walke
r.rb:13:in `visit_features'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:60
:in `execute!'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/../lib/cucumber/cli/
main.rb:23
:in `execute'
C:/Ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.3/bin/cucumber:8
C:/Ruby/bin/cucumber:19:in `load'
C:/Ruby/bin/cucumber:19
C:\Natarajan\Projects\Cucumber\Cucumber\Cucumber>
= = = = = = = = = = = = = = = = = = = = = = =
Post by Ben HallHi Nat,
It shouldn't cause any problems, you should just be able to use
Selenium + Cuke4Nuke in the same way you would with say NUnit.
I haven't got Selenium setup at the moment, but if you encounter
issues then I will be more than happy to set it up locally and help
you.
Thanks
Ben
On Thu, Jan 7, 2010 at 7:44 PM, Natarajan Balashanmugam
Post by Natarajan BalashanmugamHello,
    Is it possible to run the cuke4nuke with Selenium instead of WatiN?
Did anyone used before, if so can you provide me some sample code?
    We have serveral automated test created using Selenium, I like to reuse
them without rewrite the tests in WatiN.
    Thanks,
    -Nat.
--
You received this message because you are subscribed to the Google Groups
"Cukes" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/cukes?hl=en.- Hide quoted text -
- Show quoted text -
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
For more options, visit this group at http://groups.google.com/group/cukes?hl=en.