[Wtr-general] WET or WATIR, support for DIV tag
I am new to WET / WATIR Trying to script this site that uses DIV dynamically generated. I am using WET/Ruby. Using the Ruby text editor to see how the test runs. However, I get an error when I script click on DIV See: ie.Frame('name:=nav').document.all['297'].click ie.Frame('name:=content2').div('id:Opener_cont_live').click I get this error bug1499.rb:19: undefined method `div' for #WET::WebFrame:0x33c316c (NoMethodError) How do I get round this because the CMS I am testing does not support selenium and I need to parameterise the test Should I use WATIR ? If yes, how do I get started with WATIR asap. I am confused Please urgent help ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] WET or WATIR, support for DIV tag
Hello, No one is contributing? From what I can see, DIV is not supported by WET, but supported using WATIR. However, I prefer using WET. How can I include WATIR so that all supported tags in WATIR will work in my Ruby test code that is based on WET Then I will be able to use DIV Thanks Expert ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] WET or WATIR, support for DIV tag
On 6/15/07, Bface [EMAIL PROTECTED] wrote: No one is contributing? I guess they are sleeping now. Maybe you should post this question at wet forum? Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Load error
Hi there, I'm getting the following. `require': no such file to load -- watir (LoadError) I've checked the FAQs and downloaded the latest 1.5 version for my Ruby version 1.8.6. I've listed my local gems and I can see that water is installed, yet whenever I try and run my script, I still get the error? Max Russell Test Analyst INPS ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Load error
can you post your test script? it would help to diagnose your problem. Cheers, Jason On 6/15/07, Max Russell [EMAIL PROTECTED] wrote: Hi there, I'm getting the following. `require': no such file to load -- watir (LoadError) I've checked the FAQs and downloaded the latest 1.5 version for my Ruby version 1.8.6. I've listed my local gems and I can see that water is installed, yet whenever I try and run my script, I still get the error? *Max Russell* Test Analyst INPS** ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Best Combination of Ruby and Watir
Jeff Fry wrote: 1. When we say if you are using the Watir::IE#modal_dialog method, you must use Ruby 1.8.2-14 and not a more recent version. Do we really mean 1.8.2-14? It sounds like 1.8.2-15 worked correctly with --include-dependencies. Can we safely just change references from 1.8.2-14 to 1.8.2-15? 2. If not, should we change the above to: Yeah, i'm wondering if we should just tell people not to use 1.8.2-14. To Install Watir: Best way to install is to use the gem. From your command line: gem install win32-process You will be prompted to install dependencies. Say yes. gem install watir This will download and install watir, win32-process and all dependencies. One more question: Do these instructions change in any way if you have a previous version installed? If so, what should I know to add? Yes. See here for details: http://wiki.openqa.org/display/WTR/Development+Builds ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] OT-ish: How many reqistered OpenQA Watir users?
I'm interested in how many registered users the project has. Other information like page traffic, downloads, would be fun to know also. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] OT-ish: How many reqistered OpenQA Watir users?
Chris McMahon wrote: I'm interested in how many registered users the project has. Other information like page traffic, downloads, would be fun to know also. I don't believe users register for specific projects. You can ask Patrick for the other information. Bret ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Microsoft Tab Strip Issues - urgent
Can you find the session key in the page itself? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] frames and url()
Chong Jiang wrote: Is there some way to return the url of a frame, for example, ie.frame(:index, 1), so I can navigate to the page with a goto? ie.frame(:index, 1).url ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Microsoft Tab Strip Issues - urgent
Another approach might be to work around not knowing the session key with regular expressions, perhaps something like: $ie.form(:action, /CCAdmissionDefAdmissionInfo.aspx/) Note that ie.form and :action above are blind guesses, since I haven't worked tabs like this, but hopefully illustrate how you would use a regular expression to identify an element by a substring. Regexes can be used in many many more complex ways. See for example http://www.regular-expressions.info/ Jeff On 6/15/07, Bret Pettichord [EMAIL PROTECTED] wrote: Can you find the session key in the page itself? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -- http://testingjeff.wordpress.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Understanding down_load_time on AJAXy pages
Hi, The app I'm testing has very dynamic pages, constructed by a series of queries, leading to certain elements loading faster than others. I'd like to benchmark how long it takes for various pages to load. Toward that end I wrote: 100.times do url = $url_root + /view?id=%239202a8c04000641f80056de6 start = Time.now $ie.goto(url) if $ie.link(:text,'Million Dollar Baby').exists? $results_array $ie.down_load_time.to_s p '$ie.down_load_time: '+$ie.down_load_time.to_s else # there's a problem with the page $results_array 'e' p 'e' end #if took = Time.now - start p 'Took: ' + took.to_s end #N.times do Which yields results like: ruby performance_benchmark2.rb Loaded suite performance_benchmark2 Started $ie.down_load_time: 1.993 Took: 2.434 $ie.down_load_time: 2.473 Took: 2.583 $ie.down_load_time: 2.404 Took: 2.564 I'm curious why I get up to .5 seconds more for 'took' than I do for down_load_time. Does down_load_time have a way of knowing when everything on the page has finished loading on a page where various elements render in phases? I can include more of my script if that's helpful. Our site freebase.com is in an invite-only alpha right now, but if anyone wants to dig further into this I would happily forward along on invite. Thanks, Jeff -- http://testingjeff.wordpress.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Our contribution to Watir
Hello all, We've been working with Watir for a while now and sort of using watir was a browser driver for our monitoring product. Internally, there were monitoring directives/functions that we found useful in our proprietary monitoring language. I've reproduced these functions to be used with watir as we move to a more open platform. The details can be found at [http://jira.openqa.org/browse/WTR-162|http://jira.openqa.org/browse/WTR-162] Please take a look and contribute any comments or code where you can. Any help would be appreciated. Our view is that Watir is a useful tool in automated testing and we are trying to use that to develop a package that could be paired with Watir for performance testing. This contribution is only the beginning. We have more useful things that will be coming down the pipe and we look forward to contributing more in the future. Bach Le Software Engineer Webmetrics Inc. [EMAIL PROTECTED] ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Breaking code into several classes and methods
Hi all, I'm using my trusty pickaxe plus various code samples to try to take a script of mine and break it up a bit into several classes and methods within classes...and getting stuck. When I run the code below, I get: test_benchmark_page(TC_PerformanceBenchmark): NoMethodError: undefined method `link_to_text' for #Page:0x2e28b94 performance_benchmark2.rb:56:in `benchmark' performance_benchmark2.rb:54:in `times' performance_benchmark2.rb:54:in `benchmark' performance_benchmark2.rb:69:in `test_benchmark_page' It complains about this line in particular: if $ie.link(:text, page.link_to_text).exists? But when I try it in irb it seems that page.link_to_text shouldn't be a problem: irb(main):040:0 $page = Page.new(c_eastwood, /view?id=%239202a8c04000641f8056de6, Mystic River) = #Page:0x2dafe24 @link_to_test=Mystic River, @url=/view?id=%239202a8c0400641f80056de6, @key=c_eastwood irb(main):041:0 $page.link_to_test = Mystic River Here's my relevant code: class TC_PerformanceBenchmark Test::Unit::TestCase ... def benchmark(page) 1.times do $ie.goto($url_root + page.url) if $ie.link(:text, page.link_to_text).exists? $results_array $ie.down_load_time.to_s p '$ie.down_load_time: '+$ie.down_load_time.to_s else $results_array 'e' p 'e' end #if end #do end def test_benchmark_page login($url_root, $user, $pw) $page = Page.new(c_eastwood, /view?id=%239202a8c04000641f80056de6, Mystic River) benchmark($page) end end #class class Page def initialize (key, url, link_to_test) @key = key @url = url @link_to_test = link_to_test end attr_reader :key attr_reader :url attr_reader :link_to_test end Any ideas? Thanks, Jeff -- http://testingjeff.wordpress.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general