Re: [wtr-general] Watir-Classic 3.7.0 Released!
Hi, Watir-webdriver is a modern version of the Watir API based on Seleniumhttp://en.wikipedia.org/wiki/Selenium_(software) (web driver) -Karim On Mon, May 13, 2013 at 3:28 PM, Luis Espla luises...@gmail.com wrote: Hello, what is the difference between watir-classic and watir-webdriver. When I do gem list I only have watir-webdriver, is it right? Best Regards On 10 May 2013 22:19, Jarmo jarm...@gmail.com wrote: Good news everyone! I'm happy to announce that Watir-Classic 3.7.0 has been released! Put it into your Gemfile: gem watir-classic, ~ 3.7.0 Or install it manually with: gem install watir-classic Changes: * Add #required? method for input elements. * Improve the stability of drag and drop methods. With Best Regards, Jarmo Pertman -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 --- You received this message because you are subscribed to the Google Groups Watir General group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [wtr-general] Problem in setting radio button value
In the entire page, there are radio button which have the value property as 1. hence browser.radio(:value = 1).set in the last line is going set the radio button with value 1 which comes first in the html structure. I think you need some syntax like to fix the problem, by using multiple attributes since a since attribute does not uniquely identify the object browser.radio(:value = 1, :index = 2).set On Thu, Mar 24, 2011 at 4:38 PM, Ashu ashay.n...@gmail.com wrote: hi, I want to set radio button which are having the following fields(I have searched on related posts in the forum, was unable to solve my problem) trtd class=nIdle Situation/tdtd class=ninput type=radio value=0 name=idle0Text1input type=radio checked=checked value=1 name=idle0Text2/td/tr trtd class=nMode/tdtd class=ninput type=radio checked=checked value=0 name=mode0Text3input type=radio value=1 name=mode0Text4/td/tr my automation code is browser.radio(:name = idle0).flash browser.radio(:value = 1).set browser.radio(:name = mode0).flash browser.radio(:value = 1).set Here, automation for only the idle0 works, but automation at mode0 doesnt take place Is there any other alternative? Thanks! -- 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.comhttp://groups.google.com/group/watir-general%0awatir-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] Re: Problem in setting radio button value
you have done the same thing, using multiple attributes as there are 2 button which have value as 1. :) On Thu, Mar 24, 2011 at 5:52 PM, Ashu ashay.n...@gmail.com wrote: Well thanks for the reply Karim. I did manage to solve the problem using browser.radios.each {|m| if m.name == cc_output_mode0 m.value == 1 m.set end } :-) On Mar 24, 4:22 pm, karim rayani karim.ray...@gmail.com wrote: In the entire page, there are radio button which have the value property as 1. hence browser.radio(:value = 1).set in the last line is going set the radio button with value 1 which comes first in the html structure. I think you need some syntax like to fix the problem, by using multiple attributes since a since attribute does not uniquely identify the object browser.radio(:value = 1, :index = 2).set On Thu, Mar 24, 2011 at 4:38 PM, Ashu ashay.n...@gmail.com wrote: hi, I want to set radio button which are having the following fields(I have searched on related posts in the forum, was unable to solve my problem) trtd class=nIdle Situation/tdtd class=ninput type=radio value=0 name=idle0Text1input type=radio checked=checked value=1 name=idle0Text2/td/tr trtd class=nMode/tdtd class=ninput type=radio checked=checked value=0 name=mode0Text3input type=radio value=1 name=mode0Text4/td/tr my automation code is browser.radio(:name = idle0).flash browser.radio(:value = 1).set browser.radio(:name = mode0).flash browser.radio(:value = 1).set Here, automation for only the idle0 works, but automation at mode0 doesnt take place Is there any other alternative? Thanks! -- Before posting, please readhttp://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 http://groups.google.com/group/watir-general%0Awatir-general+unsubscr... -- 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.comhttp://groups.google.com/group/watir-general%0awatir-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] Watir Installation
Seems the question is about porting the Watir library on JRuby. https://github.com/operasoftware/operawatir https://github.com/operasoftware/operawatirabove is an example for Opera browser with JRuby. On Thu, Jan 27, 2011 at 12:44 PM, Chandu80 chandu.she...@gmail.com wrote: Hello All, A short query on watir instllation. I have jruby,rails and ruby installed on my machine.I now want to install watir for testing purpose.However when I do a gem install watir I get an error as follows ERROR: http://rubygems.org/ does not appear to be a repository Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/jruby-1.5.0/bin/jruby.exe extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library. Check http://kenai.com/projects/jruby/pages/Home for alternatives. extconf.rb:9: undefined method `have_func' for main:Object (NoMethodError) Gem files will remain installed in C:/jruby-1.5.0/lib/ruby/gems/1.8/ gems/win32-a pi-1.4.8 for inspection. Results logged to C:/jruby-1.5.0/lib/ruby/gems/1.8/gems/win32- api-1.4.8/ext/gem_ make.out Is there a possibility that there is a conflict between the 3 (JRuby,Ruby,Rails) ? Please let me know if you need more information on this. Regards Chandrika -- 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] Automating Windows and Their Controls With Ruby
Great work, On Fri, Dec 17, 2010 at 3:14 PM, Jarmo jarm...@gmail.com wrote: I'm pretty sure that some of you already have noticed the library i've made to automate windows and their controls. I've now written a short blog post about it. http://www.itreallymatters.net/post/2352350743/automating-windows-and-their-controls-with-ruby If that thing seems to work well then what do you think if we'd replace AutoIt and win32-api in Watir with this eventually? I'd be happy to do that. Jarmo -- 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.comwatir-general%2bunsubscr...@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] Unable to call ruby script multiple times!!
require statement is use to include a library similar to the include statement in C/C++ and not to execute the code I believe we need to replace the require 'XYZ' with system(ruby 'Ft_001.rb') On 11/12/10, chethan sarathy chethan2...@yahoo.co.in wrote: here is my code @i = 1 begin require 'Ft_001' # This is my script sleep(10) @i = @i+1 end while @i 10 Thanks, Chethan --- On Wed, 10/11/10, Željko Filipin zeljko.fili...@wa-research.ch wrote: From: Željko Filipin zeljko.fili...@wa-research.ch Subject: Re: [wtr-general] Unable to call ruby script multiple times!! To: watir-general@googlegroups.com Date: Wednesday, 10 November, 2010, 2:28 PM On Wed, Nov 10, 2010 at 6:16 AM, Chethan chethan2...@gmail.com wrote: But I am unable to execute multiple times. Show us the code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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] What Ruby version do you all recommend using with Watir?
yeh 1.8.6 is recommended, ruby 1.9.* would work on unix but on windows environment gosh knows, although the library has been patched to work with 1.9.* On 7/30/10, Yuping Zhong littlezhong...@gmail.com wrote: recommend 1.8.6 On Sat, Jul 31, 2010 at 6:26 AM, John Fitisoff jfitis...@yahoo.com wrote: 1.8.6-25 - Original Message From: Melissa meisa...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Fri, July 30, 2010 2:15:58 PM Subject: [wtr-general] What Ruby version do you all recommend using with Watir? My test team is experimenting with Watir, and one tester has experienced problems running Watir with the 1.9.1-p429 version of Ruby. What Ruby version do most of you run? Thanks for any tips. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Watij on Watir Podcast
Hello, One thing that could be addressed was how to use Watij library with JRuby. right now with Watir, since it is running on a C port, the chance of platform change/OS change can cause the script to break at times or installation problems. Watij as it a Java Port, i guess it would give a certain amount of reliablity as to write you script on one platform and run it any where? Karim Rayani On Thu, Mar 11, 2010 at 3:37 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Hi, I am recording a podcast with Jake Dempsey on Watij (watij.com) this Friday. If you have a question or six for Jake, ask. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.comwatir-general%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- Before posting, please read http://watir.com/support. To sum it up: search before you ask, be nice. 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 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] Question about watir and celerity
Clearity is a headless implementation of the Watir API but it runs on the java platform, Karim Rayani On Wed, Feb 24, 2010 at 8:53 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Feb 24, 2010 at 4:17 PM, Moises Siles moises.si...@gmail.com wrote: I'm not sure if after I remove the watir line it will affect something. I am sure it would help. Watir and Celerity do not share any code. I do not think you can even install Watir in JRuby (where Celerity is installed). Celerity does have it's own site and mailing list: http://celerity.rubyforge.org/ Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - podcasts on software testing. all of them -- 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.comwatir-general%2bunsubscr...@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
Re: [wtr-general] Watir + Verify JSON Response
Hello, Yeh we can read the JSON response. if we have a JSON output from some URL. then we can check this one for more help on going about reading a json output in RUBY http://snippets.dzone.com/posts/show/6133 On 1/25/10, tester86 sagar.am...@gmail.com wrote: Hi Using Watir is it possible to check the JSON response content to make sure that I am getting the correct result. Example JSON Response Content ID 9 username t...@google.com 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 -- 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] Not able to edit Text Field
use the innerText property or innerHTML propertry, some java script knowledge will be helpful Thanx Karim Rayani On Mon, Jan 11, 2010 at 4:46 PM, lokesh.agra...@gmail.com lokesh.agra...@gmail.com wrote: Hi Guys, I am facing one problem. In my webpage I have table which has many TD/TR and Div Sample code TD class=edittable-cellDIV class=editable-textbinding style=WIDTH: autolokesh/DIV/TD Now, this Div is actually a text field where lokesh is written and I want to change it. I am able to find the div ie.table(:id, ivr_template:params).div(:index,1).flash even I am able to get the text ie.table(:id, ivr_template:params).div(:index,1).text = lokesh or ie.table(:id, ivr_template:params)[2][2].text but I am not able to change this. As set method is not supported by div or table Can anyone give me solutions? Thanks in Advance Regards, Lokesh Agrawal -- 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] Watij using JRuby, starting LOC
I know this is not the exact place to put this question, but can any one help me in using jruby with Watij library, I guess JRuby can invoke classes in the Java jar files. I have set the class path and copied the jar files to the lib folder, i need help in starting the browser invokation if any one has any ideas please help Thanx -- 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] Watir 1.6.5 and Ruby 1.9.1
The Ruby 1.9.1 installation works with firewatir on Ubuntu/linux however the windows installer is not yet completely done, this topic had been discussed on many other forums as well Karim Rayani On Mon, Nov 30, 2009 at 6:37 PM, aidy lewis aidy.le...@googlemail.comwrote: Hi, I am trying to install Watir 1.6.5 on Ruby 1.9.1, but this is the issue. I am encountering: E:\gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. E:/Ruby19/bin/ruby.exe extconf.rb checking for strncpy_s()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=E:/Ruby19/bin/ruby E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generat e an executable file. (RuntimeError) You have to install development tools first. from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:419:in `try_link' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:527:in `try_func' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:772:in `block in have_func' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpo ne' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:248:in `open' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:270:in `postpone' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for' from E:/Ruby19/lib/ruby/1.9.1/mkmf.rb:771:in `have_func' from extconf.rb:9:in `main' Gem files will remain installed in E:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api- 1.4.5 for inspection. Results logged to E:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api-1.4.5/ext/gem_mak e.out Any suggestions? Aidy -- 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: Problem getting attribute of a span
Hello, If nothing works out then please use the hpricot library, excellent library for screen scrapping. Karim Rayani On Sat, Nov 7, 2009 at 2:49 AM, BookGuy bookscro...@gmail.com wrote: I'm trying to test against the class name of a span. I'm iterating through all spans and basically want to say, If ie.spans[x]'s value for class = SSSBUTTON_CONFIRMLINK then return the inner text of the span print ie.spans[x] returns the following type: id: name: value: disabled: false class:SSSBUTTON_CONFIRMLINK text: Start a New Search Anyone know how to accomplish this? I haven't been able to figure out the command to return the class name of a span. I know ie.spans [x].text will return the inner text but I don't know the code for any of the other attributes. i tried using :class also to no avail. Thanks for any help, Mike --~--~-~--~~~---~--~~ 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: Unable to find Sign Out (Gmail) using Watir
a id=:qk class=e a7 ou target=_top href=?logouthl=enSign out/a the above is a link and not a button, i believe ie.link(:id,:qk).click should work On 10/25/09, abhisheksreepal abhisheksree...@gmail.com wrote: Hi, I am working in Windows Xp. Ruby - 1.3.5 Watir - 1.6.2 I am unable to click Sign out link in Gmail Added My code and Output in http://gist.github.com/218175 --~--~-~--~~~---~--~~ 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: Unable to find Sign Out (Gmail) using Watir
hi did u try using :text,Sign out as parameters??? On 10/25/09, abhisheksreepal abhisheksree...@gmail.com wrote: Hi karim, Thanks for the reply. Yes a id=:qk class=e a7 ou target=_top href=? logouthl=enSign out/a is a link I have tried it before which didn't work.(Will get the same error) --~--~-~--~~~---~--~~ 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: Unable to find Sign Out (Gmail) using Watir
cool thanx it helped me as well On 10/25/09, abhisheksreepal abhisheksree...@gmail.com wrote: Hi karim, I found out the mistake. Actually Sign Out is under a frame. This will work ie.frame(:index,4).link(:id,:qk).click ( or even with :name it will work) --~--~-~--~~~---~--~~ 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: Need to print results of Mulitple scripts in oneHTML file
Hello All, Use the Watircraft framework, nothing like using Rspec so as to get to know the exact point of failures and fancy reports Regards, Karim Rayani On Fri, Oct 9, 2009 at 2:03 PM, Rohan Ojha rohan.o...@bsil.com wrote: Hey Bindhu, Rake is ruby make file. You can say its Ruby’s version of batch file (its not but for starters you can have this assumption). In the Rake file ,you can have multiple scripts with which you can create a test suite of a kind. I am sure there is a lot of material available over the internet if you look for rake files. Thanks, Rohan Ojha -Original Message- From: watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] On Behalf Of Bindhu Sent: Friday, October 09, 2009 11:36 AM To: Watir General Subject: [wtr-general] Re: Need to print results of Mulitple scripts in oneHTML file Thanks Prajakta and Rohan for ur quick reply, And sorry to bother you again... I the below code in every script r = CLReport.new() testReport = r.createReport('D:\\Automation\\ReportName') Script to be executed end r.addtoReport(testReport,TC_001, 'PASSED', New Account Created for Regular Savings,Personal (10) and class code of Individual with Account No :) r.finishReport(testReport) rescue r.addtoReport(testReport, 'Test crashed with reason '+$!, 'FAILED', 'Test crashed!') r.finishReport(testReport) And based on ur sugesstion I m trying to use CLReport.open(). But it is not working. Please extend ur help. Rohan, I m really not aware what is rake.Can you please provide me some example. Thanks in Advance On Oct 9, 10:20 am, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Shouldn't be a problem. Open the same html file in both the scripts for logging the results. It will log the results one after another in the same html file. -Prajakta On Fri, Oct 9, 2009 at 10:31 AM, Bindhu udayarekha2...@gmail.com wrote: Hi All, In batch file I have included 2 scripts to be executed. After a successful execution of this batch I want to print the results in one HTML file. As of now I am able to print the one HTML file for one script. But I want a single HTML file to be printed for multiple scripts which I have inculded on batch file. Please guide me. Right now I am using the code which is available in wiki.. Thanks- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Issue with .click when selecting via id
I donot know much of what you have done but for safari we need to have safariwatir installed require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto(http://google.com;) browser.text_field(:name, q).set(obtiva) browser.button(:name, btnI).click puts FAILURE unless browser.contains_text(software) if you could try the above script to check it things run smoothy? i have never tried safari but this test is only to know if safariwatir is working or not On 10/6/09, QAguy qablogm...@gmail.com wrote: I am using rspec with safariwatir. When I try to have watir click a link for which I have an id I see the link get highlighted in yellow but the click action doesn't occur. Here is an example: @browser.button(:id, ID_name).click I then tried this: Watir::Element::click { @browser.button(:id, anonymous_element_1)} But this generates the following error: NameError in 'Register Upgrade and upload a video flow should upload a video' uninitialized constant Watir::Element I'm a newbie to watir so any help you can provide would be greatly appericated. 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] Re: Platforms
how about Ruby 1.9.1 in the list On Mon, Oct 5, 2009 at 6:23 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: I have created a new wiki page: http://wiki.openqa.org/display/WTR/Platforms Feel free to comment, edit, improve, fix bugs... Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ 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: Checking if link exists
Hi try this syntax require watir test_site = http://www.google.com; ie = Watir::IE.new ie.goto test_site puts ie.link(:index,1).to_s *puts ie.link(:index,1).href* # above is the href property to extract the href value from the hyperlink sleep(10) ie.close Thanx Karim Rayani http://karimnumerouno.wordpress.com On Fri, Oct 2, 2009 at 9:28 AM, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello, I want to check if a link exists in the page. I dont know what the content text of the link is, but I know the url. The procedure is: I want to set a filter with a certain text and clicking on the filter, it suppose to return nothing, that's how I will see that it is working well. --~--~-~--~~~---~--~~ 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: I need help with Watir documentation: Methods Supported by Element
yeh definately. On Thu, Sep 24, 2009 at 4:44 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: I have been updating these wiki pages: http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Tag http://wiki.openqa.org/display/WTR/How+and+What http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element All pages are related. The first two pages have `how` portion sorted alphabetically, which is really useful. The third page (Methods Supported by Element) has Watir methods sorted by alphabetically, but `how` is not sorted alphabetically. I do not have the time to sort it. Anybody has the time to update that? If you need any help, please let me know. Željko -- http://watirpodcast.com/ -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: I need help with Watir documentation: Methods Supported by Element
hey hi, i have sorted the header column, you could verify the header column From Karim Rayani On Thu, Sep 24, 2009 at 4:22 AM, karim rayani karim@gmail.com wrote: yeh definately. On Thu, Sep 24, 2009 at 4:44 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: I have been updating these wiki pages: http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Tag http://wiki.openqa.org/display/WTR/How+and+What http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element All pages are related. The first two pages have `how` portion sorted alphabetically, which is really useful. The third page (Methods Supported by Element) has Watir methods sorted by alphabetically, but `how` is not sorted alphabetically. I do not have the time to sort it. Anybody has the time to update that? If you need any help, please let me know. Željko -- http://watirpodcast.com/ -- --~--~-~--~~~---~--~~ 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: need a command to check for a feild is visible ornot
Could you share the URL of the application with us so that I could understand how the application id designed. FROM Karim Rayani http://karimnumerouno.wordpress.com On Tue, Sep 22, 2009 at 7:42 AM, ravi pulipaka ravi8...@gmail.com wrote: its giving me an error undefiend meathod visible i tried updating the gems but stil the error is there can you help regarding thanx in advance ravi On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.com wrote: If you want to check whether a given object is visible in the UI of the page then you can try: ie.hidden (:attribute, property).visible? ==false then puts ‘Object is hidden’ else puts ‘Object is not hidden’ end Note that you have to use hidden instead of text_field or button *Thanks*, *Rohan Ojha* *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22 6688 6999 l * rohan.o...@bsil.com www.bsil.com - Where Partnerships Are Built on Trust -- *From:* watir-general@googlegroups.com [mailto: watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka *Sent:* Tuesday, September 22, 2009 6:29 AM *To:* watir-general@googlegroups.com *Subject:* [wtr-general] Re: need a command to check for a feild is visible ornot I have tried visible?.should be false but it didnt work On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote: Maybe something like: browser.text_field(:id, 'id').visible? http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318 Hope that helps. On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote: I have a situation I have a text box which pops up when I select a option from a selectlist above it, otherwise is is not visible on the screen if I use the command available in watir eval(browser.field).should_not exist - it fails if i say should exist ---it passes I think it is in the dom can you suggest me any options Thanx in advance regards ravi -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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 do i read a .txt file using watir script
like said begin file = File.new(readfile.txt, r) while (line = file.gets) puts #{counter}: #{line} counter = counter + 1 end file.close rescue = err puts Exception: #{err} err end the above script reads your readfile.txt line by line, the string variable line can be inturn splitted using = sign as the separator and then splitted string could be copied into a hashed array by the Watir is just a browser driver (the best one :), inorder to do all such things you need to know Ruby. From Karim Rayani http://karimnumerouno.wordpress.com On Sat, Sep 19, 2009 at 7:34 PM, crsna g.inamp...@gmail.com wrote: were you able to find a solution? On Sep 14, 6:36 am, msazeez28july sabdulkha...@gmail.com wrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txtfilelike belo url =http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txtfileusing watir scripts like openfile,readline by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open afile andreadline by line using watir scripts. Does watir has class or library to supportfileopen inread/write/append modes. Please let me know. Thanks in advance. Regards Syed --~--~-~--~~~---~--~~ 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: What is the current support level for Ruby in Watir?
the windows one click install is version 1.8.6. 1.8.6 is the most stable one and widely used. you might run into all sorts of problems and mess up all the current set up. It would be wise not to do that. /// Karim Rayani http://karimnumerouno.wordpress.com On Fri, Sep 18, 2009 at 7:28 AM, Nathan Lane nathamberl...@gmail.com wrote: Alright, thanks for that information. So what is the difference between if I install Ruby using the Windows one-click installer, and if I just go get the latest Ruby version and extract it over the old installation? Other than now my uninstall won't work -- I still have my path set to all of the batches and executables for Ruby. Does the Windows one-click installer do something special on Windows? On Fri, Sep 18, 2009 at 4:39 AM, Jari Bakken jari.bak...@gmail.com wrote: On Thu, Sep 17, 2009 at 6:51 PM, karim rayani karim@gmail.com wrote: still i was unable to use Ruby 1.9.1 on windows that comfortably. I guess Watir with Ruby 1.9.1 might be on the way once we have a stable One click installer for Window, the highest priority for the ruby community right now would be to get rails with Ruby 1.9.1 in production environment and to do that many libraries need a fix. The HEAD of Watir has all tests passing on 1.9.1 (using the preview RubyInstaller for Windows) since this commit: http://github.com/bret/watir/commit/802182512b4114803a277e87336332f4da9290ca I would definitely wait for the official RubyInstaller release before using Watir on 1.9 though. Executing the test suite was actually slower in some cases on 1.9.1 compared to the 1.8.6 from the old one-click installer. -- Nathan Lane Home, http://www.nathandelane.com Blog, http://blog.nathandelane.com -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: What is the current support level for Ruby in Watir?
sorry to misguide you you can follow the steps in the below article as well, it contains the detailed instruction to install the ruby 1.9.1 on a windows machine, but i am not sure if you would be able to download the latest watir package which has the 1.9.1 fixes :) Regards, http://karimnumerouno.wordpress.com On Fri, Sep 18, 2009 at 8:29 AM, karim rayani karim@gmail.com wrote: the windows one click install is version 1.8.6. 1.8.6 is the most stable one and widely used. you might run into all sorts of problems and mess up all the current set up. It would be wise not to do that. /// Karim Rayani http://karimnumerouno.wordpress.com On Fri, Sep 18, 2009 at 7:28 AM, Nathan Lane nathamberl...@gmail.com wrote: Alright, thanks for that information. So what is the difference between if I install Ruby using the Windows one-click installer, and if I just go get the latest Ruby version and extract it over the old installation? Other than now my uninstall won't work -- I still have my path set to all of the batches and executables for Ruby. Does the Windows one-click installer do something special on Windows? On Fri, Sep 18, 2009 at 4:39 AM, Jari Bakken jari.bak...@gmail.com wrote: On Thu, Sep 17, 2009 at 6:51 PM, karim rayani karim@gmail.com wrote: still i was unable to use Ruby 1.9.1 on windows that comfortably. I guess Watir with Ruby 1.9.1 might be on the way once we have a stable One click installer for Window, the highest priority for the ruby community right now would be to get rails with Ruby 1.9.1 in production environment and to do that many libraries need a fix. The HEAD of Watir has all tests passing on 1.9.1 (using the preview RubyInstaller for Windows) since this commit: http://github.com/bret/watir/commit/802182512b4114803a277e87336332f4da9290ca I would definitely wait for the official RubyInstaller release before using Watir on 1.9 though. Executing the test suite was actually slower in some cases on 1.9.1 compared to the 1.8.6 from the old one-click installer. -- Nathan Lane Home, http://www.nathandelane.com Blog, http://blog.nathandelane.com -- Regards, Alkarim Rayani -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: What is the current support level for Ruby in Watir?
From what i have done is, Firewatir is compatible with ruby 1.9.1 on ubuntu. still i was unable to use Ruby 1.9.1 on windows that comfortably. I guess Watir with Ruby 1.9.1 might be on the way once we have a stable One click installer for Window, the highest priority for the ruby community right now would be to get rails with Ruby 1.9.1 in production environment and to do that many libraries need a fix. you can find the status of the gems on isitruby19.com and search for the gems. the site is made to perform the cleanup activity for ruby 1.9.1. Best Karim Rayani http://karimnumerouno.wordpress.com On 9/17/09, Nathan Lane nathamberl...@gmail.com wrote: On the Watir installation page, the latest version of Ruby mentioned is 1.8.6. I currently run that version, however I would like to run 1.9 and still use Watir. What is the current testing status for 1.9? And is 1.8.7 supported by Watir? If the Watir cannot run on 1.9, then what can I do to help out? Thanks. -- Nathan Lane Blog, http://blog.nathandelane.com -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Setting innerHTML of a div using Watir.
Why not use Javascript commands, there is a technique to insert/execute javascript commands as well, that would be a better direct way http://karimnumerouno.wordpress.com On Fri, Sep 18, 2009 at 10:45 AM, Prajakta Jadhav jadhav.praja...@gmail.com wrote: Can you post the html code of this page? Are there any frames outside the div? On Fri, Sep 18, 2009 at 5:34 AM, Brian Rosenthal brosent...@facebook.com wrote: Hi, We’re using an “editable div”, and we need to be able to set its contents using Watir (in IE). What’s the best way to do that? It doesn’t seem to respond to IE.text_field(...)... And IE.div(...).innerHTML does not work (nor set). (this syntax) div contenteditable=true/div Thanks, Brian -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Handling Java Script button
Place a while loop (i would suggest not infinite) and then use $browser.text.include? 'llama' and code the sleep interval in the loop along with it as well. From Karim Rayani On Wed, Sep 16, 2009 at 8:18 AM, dk dkora...@gmail.com wrote: Thanks a lot Zeljko ! worked just fine. Wonder why i didnt think of trying link :) One more question though: After the click, since it is not a page refresh - but an ajax call, i am waiting for some text to show up on page. How do i instruct Watir to wait for it before executing the next step? -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Slider Problem
well, some javascript script even has not been triggered, you can ask the developer for the javascript event that is being invoked and invoke the same, as we know that in watir we can execute javascript statements as well. Regards, Karim Rayani On Tue, Sep 15, 2009 at 3:18 PM, Rajat Singhal coolraja...@gmail.com wrote: Hi AJ Can you please provide a solution for this ASAP Thanks Can y On Fri, Sep 11, 2009 at 10:45 AM, Rajat Singhal coolraja...@gmail.com wrote: Hi AJ It moves the slider but does not change the time\price value accordingly displayed above the slider . and results are not filtered on changing style value of div. kindly do let me know how it is possible Thanks Rajat Singhal On Thu, Sep 3, 2009 at 4:03 PM, AJ ajithoffic...@gmail.com wrote: Hi Ravinder, You can automate it as shown below, sliderLeft = ie.div(:class = zpSliderButtonHorizontal, :index = 1) // U can identify each slider by providing an appropriate index. sliderLeft.style.value = 10 // Replace 10 with any value. It will move the slider accordingly -AJ On Sep 1, 4:25 pm, Ravinder Singroha ravindersingr...@gmail.com wrote: Hi, We have a scenario wherein we need to drag and drop a slider in order to define a filter for a specific range (time/price). Please find attached the screen-shot for the sliders. Steps to reach the concerned screen:- 1. Gotowww.makemytrip.com 2. Select one-way trip, fill in details and click on Search button 3. Find the sliders for Price and Time range filters on the top left panel Filter Your Results of the resulting Listing page. Please do let us know if it would be possible to automate this scenario using Watir. Thx Ravinder Singroha -- Regards Rajat Singhal +919718729742 -- Regards Rajat Singhal +919718729742 -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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 do i read a .txt file using watir script
begin file = File.new(readfile.rb, r) while (line = file.gets) puts #{counter}: #{line} counter = counter + 1 end file.close rescue = err puts Exception: #{err} err end readfile.rb is your .txt file and line is data from each line in the file. From Karim Rayani On Mon, Sep 14, 2009 at 4:06 PM, msazeez28july sabdulkha...@gmail.com wrote: Hi, We have watir scripts which requires url, username, password and path (location of the datatables). These parameters are changing depends upon the server where application is deployed. I would like to put these information inside a .txt file like belo url = http://198.44.23.11/DemoApplication.WebUI username = admin password = adm...@# path = D:\Watir\WatirScripts Now i need to access the above .txt file using watir scripts like open file, read line by line and store each word in a array then use array elements to get exact values for each parameters and store it on respective variables to use inside scripts. Could you please let me know, whether we can able to open a file and read line by line using watir scripts. Does watir has class or library to support file open in read/write/append modes. Please let me know. Thanks in advance. Regards Syed -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Selecting a url from an array
You need to write the regular expresssions in the correct format for this dude. Best Karim Rayani On Sat, Sep 12, 2009 at 12:37 AM, orde ohil...@gmail.com wrote: Have tried the line below but it gets confused because of the extra //. $links.detect { |$links| /^http://word/=~ $links } Is it possible to tell watir/ruby to ignore the extra forward slashes? Does this work? $links.detect { |$links| /^http:\/\/word/=~ $links } Hope it helps. On Sep 11, 6:11 am, ash ashbr...@gmail.com wrote: I am using the following to collect all the links on a page and now need to select a particular link to click on; $browser.links.each do |l| #Relative link if (l.href.first == /) $url = $browser.url + l.href[1..-1] else $url = l.href end if !$links.include?($url) $links.push $url end end The following finds the very first link but I need to find the first link that contains a certain word; $links.detect { |$links| /^http/ =~ $links } Have tried the line below but it gets confused because of the extra //. $links.detect { |$links| /^http://word/=~ $links } Is it possible to tell watir/ruby to ignore the extra forward slashes? -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Ruby/Oracle connectivity
you can also use the db2 library or the active record library they are better then the OCI8 stuff On Tue, Jul 21, 2009 at 7:14 PM, Dheeraj Gambhirchecktestingthi...@gmail.com wrote: Hi, I am getting oci.dll missing error on running the code given by you: require 'oci8' connection = OCI8.new(mlbread,mlbread,MLBD) sql = 'select * from bam_order.ec_invoice where created_datesysdate-2' connection.exec(sql) do |row| puts row end Regards D G On Jul 21, 6:25 pm, Ivan Kabluchkov ikabluch...@gmail.com wrote: Installhttp://rubyforge.org/projects/ruby-oci8/ And example of code: require 'oci8' connection = OCI8.new(user, pass, scheme) sql = 'select * from table' connection.exec(sql) do |row| puts row end On 21 июл, 17:06, Dheeraj Gambhir checktestingthi...@gmail.com wrote: Hi All, I have tried my level best to connect to oracle using ruby but all in vain. Can any one provide concrete steps to follow to do that. Please list down what all we require for this. Thanks in advance. Regards Dheeraj Gambhir -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Time to learn Watir
if one has knowledge of automation then learning watir should only take around 1 month. However if automation/programming background then it can take a fair bit of time On Fri, Jul 10, 2009 at 9:30 PM, Georgegeorge.sand...@gmail.com wrote: I have relatively no programming experience. I started intensely learning Watir/Ruby 7 months ago. While I've come a long way, I know there is so much I don't know about. I would agree that you will need to learn Watir AND Ruby side by side. As a result, I managed to write a lot of automation scripts for my company. Needless to say, I was able to avoid the multiple layoffs we have had recently! :) On Jul 10, 4:41 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jul 10, 2009 at 1:08 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: After a quick start with Ruby basics and Watir, keep learning Ruby side by side. +1 Exactly the way I did it a few years ago. Željko -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: run all watircraft specs
i guess using the rake command we can run alll the spec and then the result is stored in and index.html file something like rake specs/spec On Sat, Jul 11, 2009 at 2:03 AM, Steveshaml...@twia.org wrote: The following seems to work: spec xxx.rb yyy.rb zzz.rb -fs -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Running Watir suite from Hudson
yeh watircraft does the same. we need to define the tasks in the spec folder and run with the command rake rspec. i did try it for a couple of tasks On Fri, May 22, 2009 at 12:50 PM, al3kc aleks.kiev...@gmail.com wrote: I think the Batch Task is all you need to run your tests. This plugin should be installed by default. -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Running Watir suite from Hudson
How about using watircraft, i guess we can perform batch run's of test cases in that rite?? On Fri, May 22, 2009 at 5:02 AM, Lisa Crispin lisa.cris...@gmail.com wrote: Is anyone using Hudson to run their Watir suites? Is there a Hudson plugin for Watir? We've always run our suites from the DOS window, using testrunner (we use the test/unit framework). But we really need to get it into a scheduled build. We can run it on a slave Windows vm from Hudson, but we aren't sure how to be able to see the results. Thanks, Lisa -- Lisa Crispin Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers and Agile Teams_ (Addison-Wesley 2009) http://lisacrispin.com -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Help needed in automation using Watir
when doing automation, any testing tool has the concept of object identification be it QTP, SILKTEST etc, you can try to use indexing if possible for object identification, the developer can change the name, id etc indexing can help, but mind you that can also change if the devs donot understand the pain of testing an application using an automation tool On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com lokesh.agra...@gmail.com wrote: Hi All, I am doing web application automation using Watir. The problem I am facing is, whenever we get a new build from developers there are changes in id, name of some objects. Due to which our scripts fails and manually we need to find what are the changes by viewing source code. This is really hectic and time consuming task. Everytime before running our Test suite to new build we need to modify scripts. Does anyone has solution of this problem? FYI: I am using Test Unit framework to run test cases. Thanks in Advance, Regards, Lokesh Agrawal -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Help needed in automation using Watir
you can use the IE developer tool bar on IE and firebug on firefox for object identification, there is no special object spy which i know off for watir, i largely believe these are the tools which are widely used for object identification for watir. If there is any thing for object spying like for QTP and SILKTEST then guys please share. On Thu, May 14, 2009 at 12:32 PM, Lokesh Agrawal lokesh.agra...@gmail.com wrote: Thanks Alkarim, Is there any other option in Watir for Object Identification?? On May 14, 11:27 am, karim rayani karim@gmail.com wrote: when doing automation, any testing tool has the concept of object identification be it QTP, SILKTEST etc, you can try to use indexing if possible for object identification, the developer can change the name, id etc indexing can help, but mind you that can also change if the devs donot understand the pain of testing an application using an automation tool On Thu, May 14, 2009 at 11:48 AM, lokesh.agra...@gmail.com lokesh.agra...@gmail.com wrote: Hi All, I am doing web application automation using Watir. The problem I am facing is, whenever we get a new build from developers there are changes in id, name of some objects. Due to which our scripts fails and manually we need to find what are the changes by viewing source code. This is really hectic and time consuming task. Everytime before running our Test suite to new build we need to modify scripts. Does anyone has solution of this problem? FYI: I am using Test Unit framework to run test cases. Thanks in Advance, Regards, Lokesh Agrawal -- Regards, Alkarim Rayani -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Watir Testers - UK Wide oppurtunities
On Fri, May 8, 2009 at 3:28 PM, Matt matthewwill...@computerpeople.co.uk wrote: Hi, I'm new on here and apologies if this is not the done thing! I specialise in OSS recruitment for Computer People. I have a number of vacancies in Watir and other OSS related testing tools. Please reply to matthewwill...@computerpeople.co.uk for more details Thanks Matt -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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 write Recovery Scenario in Watir for unexpected popups
You can use begin rescue ensure statement for exception handling, this is the exception handling syntax for ruby begin code rescue e . write to file the description of failure ensure ... close the database connection end On Mon, May 4, 2009 at 2:36 PM, sHiVa krapa.ph...@gmail.com wrote: Hi all, While running my test suite, if any exception is raised, that is handled by my driver program and rest of the scripts are executing smoothly. But if any unexpected popup which is not expected on the application, then total script is getting blocked from execution. Can any one give me an idea to handle such kinds of show stoppers? In QTP, i use recovery scenarios for handling unexpected script blockers. But in Watir, do we have any such kind of features? Writing separate Thread to listen those kinds of script blockers is possible? Regards Siva Phaneendra Krapa -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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: Stripping url
do one thing if you know ruby somewhat url=ie.url url_splitted=url.split(?) puts url_splitted[0] should give you the base url On Fri, May 1, 2009 at 5:00 PM, ash ashbr...@gmail.com wrote: Having searched this group, plus the wiki, plus the mail archives I am still a little confused as to the syntax format for stripping text from a url. Apologies if there is a thread covering this already but I am now getting frustrated with this as it seems such a simple task but I can't get my head round it. I have a check in a test to ensure that the url reached is correct but there is a variable at the end of the url that I don't need. How do I get rid of this? My url is of the format http://www.blah.com/uk/home.asp?variable So far I have discovered that the following will possibly help; new_url = ie.url[/(.*)\//] although this strips everything after uk/. I just need to strip out ?variable. My question is really; What does this mean? [/(.*)\//] Cheers...Ash -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---