[wtr-general] Re: Handling Choose a digital certificate
Hi Tiffany Thanks for the reply. My idea is to install as many as certificates in all machines that will be used for execution. Each certificate has specific roles within the application and this would allow me to run any test script in any machine remotely. This enables me to send certificate name/id to be used as a parameter (which is present in my cucumber script). So, when a script is sent to a machine for execution, it checks the certificate parameter, loads the certificate with the help of RAutomation and then execute/test the functionality. Now I am trying to figure out how to navigate to a specific certificate and press OK button. I am not sure how to do that :-). -Bala -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Watir script compartmentalization
George The basic principle I follow is to keep the scripts test one thing at a time. Doing this might require a bit of duplication but its worth. At any point of time you can say what your script does and analysing failures becomes much more easier. hope this helps. -Bala -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Watir script compartmentalization
On 9/28/11 10:47 PM, George wrote: Hello, I was curious to know how granular folks are making their Watir scripts. As an example, I have an authentication script that contains three parts: 1. Checking the elements of the login page 2. Performing valid logins and validating the output 3. Performing invalid logins and validating the output Currently, all three parts are in one script. I'm wondering if I should separate each of these into its own script. It would seem to make sense, but I'd like to see what your opinion is. Thanks! I use Cucumber to define my tests and then drive browsers via Watir and Watir-WebDriver. If you are interested more in motivation and setup for that, I blogged about it at http://blog.houseofsoft.org/2011/04/05/automate-your-feature-tests/ Translated into Cucumber, your case would most likely be done in a single feature file (e.g. login.feature) with multiple different scenarios within the file. -- DK Yahoo! Messenger: dk_root, ICQ: 1127441 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Need Help with Element not found
Hi, i have below HTML that within an iframe, how do i locate the link for the div id = test_002? td class=p_action colspan=1 span class=class A div id=test_001 a onclick=gotofuction(); return false; href=javascript: void(0)Buy/a /div /span /td td class=p_action colspan=1 span class=class A div id=test_002 a onclick=gotofuction(); return false; href=javascript: void(0)Buy/a /div /span /td I tried below but doesnt work as it says element not found browser.frame(:name, '').div(:id, 'test_002').link(:text, 'Buy').click Please advise -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Need Help with Element not found
please provide the full code including the iframe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Scroll DIV element in watir-webdriver
Thanks, Jari. It works. On Sep 27, 10:35 pm, Jari Bakken jari.bak...@gmail.com wrote: On Tue, Sep 27, 2011 at 5:10 PM, the_zonker the.zonk...@gmail.com wrote: Does watir-webdriver has native methods to scroll inside the element (not in browser window or frame)? Try this (accessing the underlying WebDriver API): element.wd.location_once_scrolled_into_view -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] How to run watir-webdriver tests on the foreground using TeamCity
Hi guys, As my tests suite grew enough I've been started to use TeamCity CI to get good dashboard functionality, test parallelization and scheduling. To create tasks for tests are use Rake. However I ran into an inconvenience - tests which are started by TeamCity run in background mode. It means that browser (IE, FF) is not visible. It seems that they are ran as a background Windows services (yes, I'm using Windows). For me it is important to see what tests are currently running etc. Please help me to make my tests visible. I appreciate any help. Regards, Vadim -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Invalid gemspec
Hi, Okay I got have gotten the [Invalid gemspec in [/Users/joseph] problem. It was an internal issue and watir-webdriver is now working. Thank you, Joe 2011/9/29 Joe Fleck joeflec...@gmail.com Hi Zeljko, I have installed both and that went fine. I added the [require rubygems] and below is the response: ree-1.8.7-2010.02 :001 require rubygems = true ree-1.8.7-2010.02 :002 require safariwatir Invalid gemspec in [/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@w3/specifications/chronic-0.6.4.gemspec]: invalid date format in specification: 2011-09-09 00:00:00.0Z Invalid gemspec in [/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@w3/specifications/cucumber-1.0.6.gemspec]: invalid date format in specification: 2011-09-13 00:00:00.0Z Invalid gemspec in [/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@w3/specifications/gherkin-2.4.18.gemspec]: invalid date format in specification: 2011-09-05 00:00:00.0Z Invalid gemspec in [/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@w3/specifications/json-1.6.0.gemspec]: invalid date format in specification: 2011-09-12 00:00:00.0Z Invalid gemspec in [/Users/josephfleck/.rvm/gems/ree-1.8.7-2010.02@w3/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: 2011-08-25 00:00:00.0Z LoadError: no such file to load -- safariwatir from /Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from (irb):2 from /Users/josephfleck/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/exceptions.rb:86 I did a gem update from 1.5.3 to 1.8.10. and since i have had problems. Thank you, Joe On Thu, Sep 29, 2011 at 11:56 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Sep 29, 2011 at 5:36 PM, Joe Fl joeflec...@gmail.com wrote: ree-1.8.7-2010.02 :003require safariwatir LoadError: no such file to load -- safariwatir I hope you have safariwatir and watir-webdriver gems installed. If that is true, try adding this to the top of the file: require rubygems Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] cucumber - undefined method goto error.
I'm trying out cucumber. When I execute my tests, I get this error Scenario: # features\google_search.feature:5 Google Search for delicious relaunch failure Given I'm on the Google Search Home Page # features/step_definitions/google_search.rb:8 undefined method `goto' for nil:NilClass (NoMethodError) ./features/step_definitions/google_search.rb:9:in `/^I'm on the Google Sea rch Home Page$/' features\google_search.feature:7:in `Given I'm on the Google Search Home P age' My step definitions file looks like this: require 'watir-webdriver' require 'rspec' @browser = Watir::Browser.new :ie Given /^I'm on the Google Search Home Page$/ do @browser.goto http://www.google.com; end When /^i search for delicious relaunch failure$/ do @browser.text_field(:name, q).set(delicious relaunch failure) @browser.button(:name, btnG).click end Then /^I should see AVOS' Delicious Disaster: Lessons from a Complete Failure$/ do |arg1| @browser.text.include(AVOS' Delicious Disaster: Lessons from a Complete Failure) end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] accessing a firefox popup woith watir-webdriver
Can someone show me a code snippet on how to access a firefox popup with watir-webdriver? The popupis displayed by a javascript. Thanks. -Rick -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
k. I will uninstall ruby 1.9. I've never used bundler, is there something on it? On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
i think it might have been issues with having 1.9.1 installed. i'm currenly using this version and rake spec:isolation:site works. On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Need Help with Element not found
the iframe that accessing is accurate because i am able to get other elements. See below from where the iframe called iframe id=iframe_canvas class=canvas_iframe_util noresize scrolling=no height=600px frameborder=0 src=javascript: name=xxx style=height: 1457px; overflow-y: hidden; Below are the detailed codes, i wanted to click on the link under div id=player_buy_10104751 table class=std players playersstats cellspacing=0 cellpadding=0 tbody tbody id=player_names tr class= td class=p_action colspan=1 span class=btn_playeract btn_playeract_buy div id=player_buy_1321 a onclick=buysell('buy', 1321, this); return false; href=javascript: void(0)Buy/a /div /span /td /tr tr td class=p_action colspan=1 span class=btn_playeract btn_playeract_sell div id=player_buy_10104751 a onclick=buysell('sell', 10104751, this); return false; href=javascript: void(0)Buy/a /div /span /td /tr /tbody /table The click event that i using that hving problem: browser.frame(:name, '').div(:id, 'player_buy_10104751').link(:text, 'Buy').click On Sep 29, 7:06 pm, Alister Scott alister.sc...@gmail.com wrote: please provide the full code including the iframe -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
that should say I'm currently 1.8.7 and it's working. On Thu, Sep 29, 2011 at 7:19 PM, weimar weimar1...@gmail.com wrote: i think it might have been issues with having 1.9.1 installed. i'm currenly using this version and rake spec:isolation:site works. On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
last question. In your example, you use some bits of cucumber. May i ask what you get by adding that layer of functionality. As far as I can see that the step definitons aren't used in any of the specs? On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
if you look at the whole thing the idea is the page objects the cucumber features use the taza framework pages and flows the rspec tests also use the taza framework pages and flows It sort of gives you an idea of how you can use the taza framework they are testing for the exact same things just in 2 different ways On Fri, Sep 30, 2011 at 1:14 AM, weimar weimar1...@gmail.com wrote: last question. In your example, you use some bits of cucumber. May i ask what you get by adding that layer of functionality. As far as I can see that the step definitons aren't used in any of the specs? On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] using the taza framework and watir-webdriver?
ah. So you can run either the cucumber part or the taza part? So potentially I couldn't write specs and then cucumber half would still run? On Thu, Sep 29, 2011 at 9:19 PM, bis bis...@gmail.com wrote: if you look at the whole thing the idea is the page objects the cucumber features use the taza framework pages and flows the rspec tests also use the taza framework pages and flows It sort of gives you an idea of how you can use the taza framework they are testing for the exact same things just in 2 different ways On Fri, Sep 30, 2011 at 1:14 AM, weimar weimar1...@gmail.com wrote: last question. In your example, you use some bits of cucumber. May i ask what you get by adding that layer of functionality. As far as I can see that the step definitons aren't used in any of the specs? On Thu, Sep 29, 2011 at 6:50 PM, bis bis...@gmail.com wrote: taza doesnt work for 1.9 we have not made the changes to make it work with that version of ruby if you use bundler you add a gemfile something similar to this source :rubygems gem 'taza', :git = 'g...@github.com:hammernight/taza.git' gem 'cucumber' gem watir, :platforms = [:mingw, :mswin] then when you run your rake task you would need to use bundle exec rake since its using a different version of rake that is not the newest On Thu, Sep 29, 2011 at 10:48 PM, weimar weimar1...@gmail.com wrote: Which gemfile? Have the commands to run the the rakes changed? Would there be issues If i was using ruby 1.9.1? On Thu, Sep 29, 2011 at 6:40 PM, bis bis...@gmail.com wrote: No it will not. It is forked from taza but not merged if you did want to use it you would have to build your own gem or use bundler adding this to your gemfile would work gem 'taza', :git = 'g...@github.com:hammernight/ taza.git' as far as the rakefile goes i will have to look at that rspec too i have been using rspec spec but if you use bundler you can do bundle exec rake and see if that makes a difference i have an example of using taza here and it works fine ruby 1.8.7 and watir but you can also modify this a bit and make it use watir-webdriver just change the config and require it https://github.com/hammernight/etsy_cucumber_taza_tutorial On Thu, Sep 29, 2011 at 9:29 PM, hillary weimar1...@gmail.com wrote: while i have someone involved here. Is this fork completely ready to use? Like if i ran the gem update/install taza would i be given this branch? I download the zip file and replaced the contents in the taza folder in my gem library with the contents from this folder. When I try to run a rake i get this error: c:/Ruby192/lib/ruby/gems/1.9.1/gems/taza-0.8.7/lib/extensions/object.rb:2:in `top (required)': uninitialized constant Object::VERSION (NameError) -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com