Re: [wtr-general] IE9-RC1: DOCTYPE issue.
Cool thanks for the details. That's unusual. I'll try to see if I can get IE9 running on my VM as a standalone, otherwise this'll be tough to debug. Charley Baker Lead Developer, Watir, http://watir.com On Fri, Mar 11, 2011 at 3:47 PM, Trampus Richmond wrote: > Watir using IE9-RC1 Watir is unable to click on this forms button when > using > DOCTYPE. If I remove the DOCTYPE it clicks the button just fine. > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > > > > > > > > > > > > > > -- > 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] IE9-RC1: DOCTYPE issue.
Watir using IE9-RC1 Watir is unable to click on this forms button when using DOCTYPE. If I remove the DOCTYPE it clicks the button just fine. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> -- 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] Re: Optimum setup environment for Watir 1.8.0?
Or you can simply set RUBYOPT=-rubygems in the env. variables. -- DK AIM: DKroot1, Skype: DKroot On 3/11/11 10:50 AM, GJHmf wrote: I got your reply 1 minute before popping back on here to post that I'd just figured that out :) Thanks for the double confirmation though. Cue a global line insert to all my scripts. Cheers, GJHmf -- 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-Usable Load Testing with Watir : Optimize loadtester.rb
Hi, to see there are realy diffrent thread that are running change : ...("Thread #{i} executed... by ...("Thread #{Thread.current} executed ... in log file information for loadtester.rb which can be download here : http://wiki.openqa.org/display/WTR/Re-Usable+Load+Testing+Example best regards, plebailly -- 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] double load of the same file
On Fri, Mar 11, 2011 at 3:59 PM, Usman Hussain wrote: > Hi Guys, > > Im in a bit of a Pickle. Im using Watir-Webdriver with Cucumber but > the language im coding in is RUBY. > This looks like a problem not really specific to Watir - you should ask on the Cucumber mailing list. That being said, I don't think this is currently possible with Cucumber and your needs correspond to this feature request: https://rspec.lighthouseapp.com/projects/16211/tickets/531-declarative-mechanism-for-expressing-dependencies-on-step-definitions Jari -- 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: Optimum setup environment for Watir 1.8.0?
I got your reply 1 minute before popping back on here to post that I'd just figured that out :) Thanks for the double confirmation though. Cue a global line insert to all my scripts. Cheers, GJHmf -- 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] Optimum setup environment for Watir 1.8.0?
Add require 'rubygems' to your code before requiring Watir. The newer Ruby installers don't set the RUBYOPT environment variable to rubygems any longer. Charley Baker Lead Developer, Watir, http://watir.com On Fri, Mar 11, 2011 at 5:04 AM, GJHmf wrote: > I know this is rather a broad topic of discussion, but I'll carry on > anyway. What is the current optimum environment to install and run > Watir in? > > I'm having great difficulty recreating my initial (fully working) test > environment that I set up nearly two years ago, that I concede must > have been a fluke. Windows XP, IE7/IE8, Ruby 1.8.6 (2007-09-24 > patchlevel 111), with Watir 1.6.2. I want to recreate a new > environment should I ever have the misfortune of having to start from > scratch. > > The latest stab at getting a new environment is with Windows 7, Ruby > 1.8.7 (2011-02-18 patchlevel 334), Watir 1.8.0; and nothing is > working. I can't even "require 'watir'", the first step in every one > of my scripts. > > Has anything fundimentally changed in Watir for 1.8.0? If not, what > Ruby version is guaranteed to work with it? > > Any advice will be gratefully received. > > Thanks, > > > GJHmf > > -- > 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] double load of the same file
Hi Guys, Im in a bit of a Pickle. Im using Watir-Webdriver with Cucumber but the language im coding in is RUBY. we have a new folder structure which is: | -git_repo | -lib | -bin | -features | -project_1 | -step_definitions | -support | -env.rb | -feature_files | -project_2 | -step_definitions | -support | -env.rb | -feature_files | -common_project | -support | -env.rb | -feature_files | -support | -env.rb The problem I am having is in the common_project folder there is only a feature file. The step definitions sit in the respected projects (project_1 or project_2). So This will allow me to run a regression test picking up tests from common_project and project_1 or common_project and project_2. The env.rb file in all three projects (project_1, project_2 and common_project) looks something like this: Dir["features/support/env.rb"].each {|file| require file } So all the env.rb files are pointing to one single env.rb file. The env.rb file which sits in features/support/ looks like this: require 'rubygems' require 'bundler/setup' VENTURE = $environment[:venture] def require_files(venture_type) Dir.glob(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'common', '**', '*.rb')).each{|file| require file} Dir["lib/pages/#{venture_type}/mixins/*.rb"].each {|file| require file} Dir.glob(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'pages', "#{venture_type}", '**', '*.rb')).each{|file| require file} end if VENTURE == 'www.jackpotjoy' or VENTURE == 'www.botemania' or VENTURE == 'de.jackpotjoy' puts 'WHITELABEL VENTURES' require_files 'whitelabel' else puts 'CLONE VENTURES' require_files 'clones' end def start_browser puts "-- firefox port: #{PORT} -" @browser = Watir::Browser.new(:firefox, {:port => PORT}) end After do @browser.close end The problem i am facing is that when i try to run a single feature from the common_project it is not picking up the step_definitions from the respected project. So if I change the env,rb file in the common_project to pick up the step_definitions from the respected project i change the env.rb file to this: Dir["features/support/env.rb"].each {|file| require file } def require_files(venture_type) Dir["features/#{venture_type}/step_definitions/*.rb"].each {|file| require file } end if VENTURE == 'www.jackpotjoy' or VENTURE == 'www.botemania' or VENTURE == 'de.jackpotjoy' puts 'WHITELABEL VENTURES' require_files 'whitelabel' else puts 'CLONE VENTURES' require_files 'clones' end Then I am able to run a single feature from the common_project. (the command i use is: ruby bin/runtests -e trunk-auto -t piquette -l en -v jpj -- features/common_project) BUT this is where the problem lies, I need to be able to run both projects together which i am able to do. But when the common_project env.rb file is changed to the one above then i get Ambiguous step errors. This is because the step_definitions are getting loaded twice. The command im using to run the tests together is: ruby bin/runtests -e trunk-auto -t piquette -l en -v jpj -- features/ common_project feature/project_1 So the question is... Is there any way that I can ONLY require the step_definitions to the common_project ONLY if the step_definitions are not loaded. So if i try to just run the common_project then it will run and if I run project_1 and common_project together I will not get ambiguous steps errors? Any help would be great. Ive tried looking into the cucumber source code but was not able to find anything, I've tried requiring the step_definitions in a different way and still no success... Any help, solution, tips would be really really appreciated. Once again, i'm sorry to disturb you so late in the day. Kind regards, Usman Hussain -- 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] error message
It would very very helpful if you provided the code that generated this exception My gut feeling is that you are using something incorrectly Did you read any of the examples http://wiki.openqa.org/display/WTR/Cheat+Sheet On Fri, Mar 11, 2011 at 6:29 AM, tsd wrote: > hi > I am trying to run a watir script in internet explorer and getting > this messge . the same script with the required browser changes works > fine with firefox . I use vista . > > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in > `assert_ex > ists': Unable to locate element, using :href, > "Aboutus.aspx" (Watir::Exception:: > UnknownObjectException) >from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > element.rb:288 > :in `enabled?' >from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > element.rb:60: > in `assert_enabled' >from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > element.rb:233 > :in `click!' >from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ > element.rb:219 > :in `click' > > -- > 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] error message
hi I am trying to run a watir script in internet explorer and getting this messge . the same script with the required browser changes works fine with firefox . I use vista . c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_ex ists': Unable to locate element, using :href, "Aboutus.aspx" (Watir::Exception:: UnknownObjectException) from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element.rb:288 :in `enabled?' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element.rb:60: in `assert_enabled' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element.rb:233 :in `click!' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/ element.rb:219 :in `click' -- 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] Optimum setup environment for Watir 1.8.0?
I know this is rather a broad topic of discussion, but I'll carry on anyway. What is the current optimum environment to install and run Watir in? I'm having great difficulty recreating my initial (fully working) test environment that I set up nearly two years ago, that I concede must have been a fluke. Windows XP, IE7/IE8, Ruby 1.8.6 (2007-09-24 patchlevel 111), with Watir 1.6.2. I want to recreate a new environment should I ever have the misfortune of having to start from scratch. The latest stab at getting a new environment is with Windows 7, Ruby 1.8.7 (2011-02-18 patchlevel 334), Watir 1.8.0; and nothing is working. I can't even "require 'watir'", the first step in every one of my scripts. Has anything fundimentally changed in Watir for 1.8.0? If not, what Ruby version is guaranteed to work with it? Any advice will be gratefully received. Thanks, GJHmf -- 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] Windows IE9 support?
As anyone looked into this? It is still and issue for me. Thanks, --Trampus On 2/11/11 4:11 PM, "Trampus Richmond" wrote: The following code works fine with FireFox, IE8, but not with IE9RC. The code finds the button control as it never throws an exception, but the button is never clicked. require 'rubygems' require 'watir' Watir::Browser.default = "ie" b = Watir::Browser.new() b.goto("http://www.twistedminds.org/sugarcrm";) b.text_field(:id, "user_name").set("guest") b.text_field(:id, "user_password").set("guest") sleep(2) print "Clicking...\n" b.button(:id, "login_button").click() print "Finished clicking.\n" print "Sleeping...\n" sleep(6) print "Done...\n" -- 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