[wtr-general] Re: browser.url doesn't work in FF3.6
Well, I ran into the same problem and changing "location" to URL did indeed fix the issue. On Jan 29, 7:22 am, al3kc wrote: > I've never used git before, but seems like I did it. > > > > > > > Please clonewatirrepository on github, fix it and submit a pull request. > > > Željko > > -- -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] row_count usage
Hello, I get the following error when trying to get the row count in a browser. puts $browser.row_count() 1) Error: test_print_assertion(TC_MyTest1): NoMethodError: undefined method `row_count' for # test2.rb:94:in `test_print_assertion' Please help me here. Thanks, Naga -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: How to find "class" property of an object in FireWatir?
Get firebug add-on for firefox and click on 'click an element in the page to inspect ' button in firebug panel then click on any element for which you want to find the class property. It will highlight the html code of the element and see the class name of the element if it has one. I hope that will help you. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] How to find "class" property of an object in FireWatir?
Hi, How to find "class" property of an object in FireWatir? Tried using .invoke but returns nothing. Also tried using .to_s on the object itself but it does not return class property. Please suggest a way to fetch the class property. Betsy Joy. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] Re: how to run watirscript in background
I think that's not what he want. Wesley. For life, the easier, the better. On Fri, Feb 5, 2010 at 4:16 AM, AR wrote: > You can also set visible:false in the the options.yml file if you > don't want to do it on a script by script basis. > > More details here: http://wiki.openqa.org/display/WTR/Browser.new > > On Feb 4, 11:37 am, orde wrote: > > You can set the browser as invisible after launching the browser > > (fromhttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266): > > > > browser = Watir::Browser.new > > browser.visible=(0) > > > > Not sure if that's what you're looking for, tho. Hope it helps. > > > > orde > > > > On Feb 4, 12:14 am, venkat wrote: > > > > > Thanks in advance if anybody answers my query here it is: > > > > > i have my watir script named login.rb which checks the functionality of > > > Login, go to Inbox then Logout from Gmail website. > > > If I run this login.rb using google loadtest example, it fails with > multiple > > > users (#5), multiple iterations(5). Hence I want run these tests in the > > > background process without seeing on the functional GUI navigation on > > > windows. > > > > > Would there be any solution to run my tests for load in the backgound? > One > > > of my friend's friend gave me clue that it can be done using > > > Fork...Spawn...with parent process/ child process even in windows > too... > > > > > Please help me > > > venkat > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/watir-general > -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Rake
I am trying to run watir test from hudson, and as I read you can do it with Rake. I need to fill up these fields and I have no idea what should I add: Tasks #Specify Rake task(s) to run. Rake File #Specify the rake file path, by default it's './Rakefile' Rake lib directory # Specify the rake lib directory, by default it's './rakelib' Rake working directory #Specify the rake working directory, by default it's '.' Anyone??? On Jan 6, 10:35 am, karim rayani wrote: > Rakeis similar to Make in C and Ant in Java > > One can define tasks in a file with the Rakefile and fire the > commandrakeorraketaskname to execute tasks > > On 1/5/10, Shlomit Gazit wrote: > > > Can anybody explain howrakeworks? > > I have watir tests. > > What doesrakedo and to make it work withrake? -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] WatirGrid (distributed watir) anyone?
It seems clear (due to the existence of seleniumGrid) that there's a need for a standard client/server architecture to cut down on test runtime, but I never heard about anyone discussing this. WatirGrid has existed for several months and seems to address this pretty well. It's not fully fleshed out, but I ran a solid proof of concept today and setup time was minimal. I plan on using watir for an extensive regression suite which would take days to run on a single machine and this should address my need pretty well, the beauty of which is that the logging/results will be on the server in a single place. I was sortof planning on writing some kind of distribution myself before I saw this. Is there something else out there (for Watir) that already does this that I don't know about? -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Firewatir cannot find an element on the page
The first on didn't work. I tried the second one you provided: browser.div(:for, "folder_name").text_field(:id,"folder_name").set("Watir test folder") and I got this error: JsshSocket::JSSyntaxError in 'Check folder page menu options and modals should allow the user move the video to a newly created folder' missing ; before statement I also tried browser.div(:class, "item").text_field(:id,"folder_name").set("Watir test folder") and got the same error. Here is the div code: Or, move to a new folder: Does anyone know what this error is? Thanks On Feb 2, 4:56 pm, Super Kevy wrote: > try > > > browser.text_field(:for, "folder_name").set('Watir test folder') > > or you may need to set the div element in the object: > > browser.div(:id,"whateveritis").text_field(:id,"folder_name).set > ("Watir test folder") > > On Feb 2, 10:29 am,QAguy wrote: > > > I am trying to enter data into a modal window from my site. Here is > > the site code: > > > Or, move to a new > > folder: > > > To enter data into the text_field I do: > > > browser.text_field(:id, "folder_name").set('Watir test folder') > > > This works fine in safariwatir but in firewatir I get the following > > error: > > > Unable to locate element, using :id, "folder_name" > > > Does anyone know what would cause this? Is it because this is a site > > modal? > > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Firewatir cannot find an element on the page
The first on didn't work. I tried the second one you provided: browser.div(:for, "folder_name").text_field(:id,"folder_name").set("Watir test folder") and I got this error: JsshSocket::JSSyntaxError in 'Check folder page menu options and modals should allow the user move the video to a newly created folder' missing ; before statement I also tried browser.div(:class, "item").text_field(:id,"folder_name").set("Watir test folder") and got the same error. Here is the div code: Or, move to a new folder: Does anyone know what this error is? Thanks On Feb 2, 4:56 pm, Super Kevy wrote: > try > > > browser.text_field(:for, "folder_name").set('Watir test folder') > > or you may need to set the div element in the object: > > browser.div(:id,"whateveritis").text_field(:id,"folder_name).set > ("Watir test folder") > > On Feb 2, 10:29 am,QAguy wrote: > > > I am trying to enter data into a modal window from my site. Here is > > the site code: > > > Or, move to a new > > folder: > > > To enter data into the text_field I do: > > > browser.text_field(:id, "folder_name").set('Watir test folder') > > > This works fine in safariwatir but in firewatir I get the following > > error: > > > Unable to locate element, using :id, "folder_name" > > > Does anyone know what would cause this? Is it because this is a site > > modal? > > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Killing a process
For handling popups I am doing the following: @pid = Process.create( :app_name => 'ruby clicker.rb', :creation_flags => Process::DETACHED_PROCESS ).process_id at_exit{ Process.kill(9,@pid) } It works fine, but then in the results I am getting the following which is not nice: C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:192:in `kill': The handle is invalid. (Process::Error) from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:151:in `each' from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/ process.rb:151:in `kill' from ./c2p_module_imperative_fill_1.rb:94:in `fill' from C:/Ruby/lib/ruby/1.8/test/unit.rb:278 Any idea what I am doing wrong? Thank you, Shlomit -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: how to run watirscript in background
You can also set visible:false in the the options.yml file if you don't want to do it on a script by script basis. More details here: http://wiki.openqa.org/display/WTR/Browser.new On Feb 4, 11:37 am, orde wrote: > You can set the browser as invisible after launching the browser > (fromhttp://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266): > > browser = Watir::Browser.new > browser.visible=(0) > > Not sure if that's what you're looking for, tho. Hope it helps. > > orde > > On Feb 4, 12:14 am, venkat wrote: > > > Thanks in advance if anybody answers my query here it is: > > > i have my watir script named login.rb which checks the functionality of > > Login, go to Inbox then Logout from Gmail website. > > If I run this login.rb using google loadtest example, it fails with multiple > > users (#5), multiple iterations(5). Hence I want run these tests in the > > background process without seeing on the functional GUI navigation on > > windows. > > > Would there be any solution to run my tests for load in the backgound? One > > of my friend's friend gave me clue that it can be done using > > Fork...Spawn...with parent process/ child process even in windows too... > > > Please help me > > venkat -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Handle Failures in Watir
I'm able to use begin/rescue/end for 99% of cases. Normally I'll collect the error into an array for logging or an email report afterward. Using those conventions, the script never stops, and I don't have to be glued to the console to find out when it breaks. On Feb 4, 1:42 pm, tester86 wrote: > Hi > > I have been using if/else statements in my scripts but I was just > wondering if there was other ways that I could handle exceptions. > Thanks for your help. > > On Feb 4, 12:03 pm, orde wrote: > > > You could do it a couple of ways. > > > 1. Use an if/else statement (as seen here > > -http://wiki.openqa.org/display/WTR/Example+Logging) > > > if condition=true > > # log pass > > else > > # log fail > > end > > > 2. Use the Exception class: > > > Here's the basic syntax: > > > begin > > # do something > > rescue > > # log the failure if it fails. > > end > > > For more detailed info, I'd strongly suggest getting familiar > > withhttp://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html > > and/orhttp://www.ruby-doc.org/core/classes/Exception.html > > > orde > > > On Feb 4, 8:55 am, tester86 wrote: > > > > Hi > > > > Question for the watir group. When I run my test sometimes it fails if > > > it cannot find an element or input field. Is there a way that when > > > this occurs it can log that failure and continue running the tests and > > > not stop. Is there any Watir commands that I can put in place at > > > points in my script to cope with failures? > > > > I am using the ruby logger to output all my result into a text file. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Handle Failures in Watir
Hi I have been using if/else statements in my scripts but I was just wondering if there was other ways that I could handle exceptions. Thanks for your help. On Feb 4, 12:03 pm, orde wrote: > You could do it a couple of ways. > > 1. Use an if/else statement (as seen here > -http://wiki.openqa.org/display/WTR/Example+Logging) > > if condition=true > # log pass > else > # log fail > end > > 2. Use the Exception class: > > Here's the basic syntax: > > begin > # do something > rescue > # log the failure if it fails. > end > > For more detailed info, I'd strongly suggest getting familiar > withhttp://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html > and/orhttp://www.ruby-doc.org/core/classes/Exception.html > > orde > > On Feb 4, 8:55 am, tester86 wrote: > > > > > Hi > > > Question for the watir group. When I run my test sometimes it fails if > > it cannot find an element or input field. Is there a way that when > > this occurs it can log that failure and continue running the tests and > > not stop. Is there any Watir commands that I can put in place at > > points in my script to cope with failures? > > > I am using the ruby logger to output all my result into a text file. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Handle Failures in Watir
You could do it a couple of ways. 1. Use an if/else statement (as seen here - http://wiki.openqa.org/display/WTR/Example+Logging) if condition=true # log pass else # log fail end 2. Use the Exception class: Here's the basic syntax: begin # do something rescue # log the failure if it fails. end For more detailed info, I'd strongly suggest getting familiar with http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html and/or http://www.ruby-doc.org/core/classes/Exception.html orde On Feb 4, 8:55 am, tester86 wrote: > Hi > > Question for the watir group. When I run my test sometimes it fails if > it cannot find an element or input field. Is there a way that when > this occurs it can log that failure and continue running the tests and > not stop. Is there any Watir commands that I can put in place at > points in my script to cope with failures? > > I am using the ruby logger to output all my result into a text file. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Handle Failures in Watir
Hi! If you know which elements are likely to be missing, you could add a verification that the element exists, which would trigger a failure if it's missing and then add a conditional to act on it. A Test::Unit example would be: verify((ie.link(:text, 'My Link').exists?), message='My Link didn't exist on the page.') if ie.link(:text, 'My Link').exists? ie.link(:text, 'My Link').click end If there are many element that are likely to be missing, you may want to consider adding some good exception handling. There's a discussion here: http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Hope this helps! -Tiffany On Feb 4, 9:55 am, tester86 wrote: > Hi > > Question for the watir group. When I run my test sometimes it fails if > it cannot find an element or input field. Is there a way that when > this occurs it can log that failure and continue running the tests and > not stop. Is there any Watir commands that I can put in place at > points in my script to cope with failures? > > I am using the ruby logger to output all my result into a text file. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: how to run watirscript in background
You can set the browser as invisible after launching the browser (from http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/IE.html#M000266): browser = Watir::Browser.new browser.visible=(0) Not sure if that's what you're looking for, tho. Hope it helps. orde On Feb 4, 12:14 am, venkat wrote: > Thanks in advance if anybody answers my query here it is: > > i have my watir script named login.rb which checks the functionality of > Login, go to Inbox then Logout from Gmail website. > If I run this login.rb using google loadtest example, it fails with multiple > users (#5), multiple iterations(5). Hence I want run these tests in the > background process without seeing on the functional GUI navigation on > windows. > > Would there be any solution to run my tests for load in the backgound? One > of my friend's friend gave me clue that it can be done using > Fork...Spawn...with parent process/ child process even in windows too... > > Please help me > venkat -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Handle Failures in Watir
Hi Question for the watir group. When I run my test sometimes it fails if it cannot find an element or input field. Is there a way that when this occurs it can log that failure and continue running the tests and not stop. Is there any Watir commands that I can put in place at points in my script to cope with failures? I am using the ruby logger to output all my result into a text file. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
Re: [wtr-general] please help Wair
This worked for me: browser.checkbox(:id => "srr-7-1265686200").click browser.button(:id => "reserve").click Željko -- watir.com - community manager watirpodcast.com - host -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: A way to identify the events to be fired on an object
You cannot actually know easily all the events associated with the object, because events are bubbled up in the DOM if no direct event is attached to the element. You can read about the bubbling from here for example http://triaslama.wordpress.com/2008/07/03/javascript-event-phases-capturing-and-bubbling/ Jarmo On Feb 4, 9:24 am, Betsy wrote: > Hi all, > > At times selecting a value in a select list makes new objects appear > on screen. This could not be handled by using ".set" alone and needed > an explicit use of Fireevent handling. Now if the ".fireevent" method > is used every time ".set" is used, it would again fail in cases where > no event is being fired on the select list. > > One way to do this would be to check the html of the given object for > events and fire them as necessary, but this would be a rather > cumbersome way. Can anyone suggest a better way of retrieving the > events associated with an object? > > Thanks, > Betsy Joy. -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] please help Wair
The site is made up of a lot of little check boxes used to reserve rooms. For some reason using checkbox method does not work. How would i need to write this for it to select a box in this situation and then click the reserve button found at the bottom Room 677 10:30 PM Room 677 11:00 PM Room 677 11:30 PM thanks! -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] how to run watirscript in background
Thanks in advance if anybody answers my query here it is: i have my watir script named login.rb which checks the functionality of Login, go to Inbox then Logout from Gmail website. If I run this login.rb using google loadtest example, it fails with multiple users (#5), multiple iterations(5). Hence I want run these tests in the background process without seeing on the functional GUI navigation on windows. Would there be any solution to run my tests for load in the backgound? One of my friend's friend gave me clue that it can be done using Fork...Spawn...with parent process/ child process even in windows too... Please help me venkat -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general