Re: [wtr-general] Watir-Classic 3.7.0 Released!

2013-05-13 Thread Karim Rayani
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

Re: [wtr-general] Problem in setting radio button value

2011-03-24 Thread karim rayani
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

Re: [wtr-general] Re: Problem in setting radio button value

2011-03-24 Thread karim rayani
== 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

Re: [wtr-general] Watir Installation

2011-01-26 Thread karim rayani
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

Re: [wtr-general] Automating Windows and Their Controls With Ruby

2010-12-18 Thread karim rayani
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.

Re: [wtr-general] Unable to call ruby script multiple times!!

2010-11-11 Thread karim rayani
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  

Re: [wtr-general] What Ruby version do you all recommend using with Watir?

2010-07-31 Thread karim rayani
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

Re: [wtr-general] Watij on Watir Podcast

2010-03-11 Thread karim rayani
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

Re: [wtr-general] Question about watir and celerity

2010-02-24 Thread karim rayani
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

Re: [wtr-general] Watir + Verify JSON Response

2010-01-26 Thread karim rayani
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

Re: [wtr-general] Not able to edit Text Field

2010-01-12 Thread karim rayani
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

[wtr-general] Watij using JRuby, starting LOC

2009-12-28 Thread karim rayani
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

Re: [wtr-general] Watir 1.6.5 and Ruby 1.9.1

2009-11-30 Thread karim rayani
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

[wtr-general] Re: Problem getting attribute of a span

2009-11-08 Thread karim rayani
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

[wtr-general] Re: Unable to find Sign Out (Gmail) using Watir

2009-10-25 Thread karim rayani
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

[wtr-general] Re: Unable to find Sign Out (Gmail) using Watir

2009-10-25 Thread karim rayani
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

[wtr-general] Re: Unable to find Sign Out (Gmail) using Watir

2009-10-25 Thread karim rayani
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)

[wtr-general] Re: Need to print results of Mulitple scripts in oneHTML file

2009-10-09 Thread karim rayani
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

[wtr-general] Re: Issue with .click when selecting via id

2009-10-06 Thread karim rayani
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

[wtr-general] Re: Platforms

2009-10-05 Thread karim rayani
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/

[wtr-general] Re: Checking if link exists

2009-10-02 Thread karim rayani
) 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

[wtr-general] Re: I need help with Watir documentation: Methods Supported by Element

2009-09-24 Thread karim rayani
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

[wtr-general] Re: I need help with Watir documentation: Methods Supported by Element

2009-09-24 Thread karim rayani
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

[wtr-general] Re: need a command to check for a feild is visible ornot

2009-09-22 Thread karim rayani
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

[wtr-general] Re: How do i read a .txt file using watir script

2009-09-20 Thread karim rayani
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

[wtr-general] Re: What is the current support level for Ruby in Watir?

2009-09-18 Thread karim rayani
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

[wtr-general] Re: What is the current support level for Ruby in Watir?

2009-09-18 Thread karim rayani
://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

[wtr-general] Re: What is the current support level for Ruby in Watir?

2009-09-17 Thread karim rayani
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

[wtr-general] Re: Setting innerHTML of a div using Watir.

2009-09-17 Thread karim rayani
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

[wtr-general] Re: Handling Java Script button

2009-09-16 Thread karim rayani
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

[wtr-general] Re: Slider Problem

2009-09-15 Thread karim rayani
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

[wtr-general] Re: How do i read a .txt file using watir script

2009-09-14 Thread karim rayani
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

[wtr-general] Re: Selecting a url from an array

2009-09-11 Thread karim rayani
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

[wtr-general] Re: Ruby/Oracle connectivity

2009-07-21 Thread karim rayani
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 =

[wtr-general] Re: Time to learn Watir

2009-07-10 Thread karim rayani
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

[wtr-general] Re: run all watircraft specs

2009-07-10 Thread karim rayani
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

[wtr-general] Re: Running Watir suite from Hudson

2009-05-22 Thread karim rayani
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

[wtr-general] Re: Running Watir suite from Hudson

2009-05-21 Thread karim rayani
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

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread karim rayani
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

[wtr-general] Re: Help needed in automation using Watir

2009-05-14 Thread karim rayani
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

[wtr-general] Re: Watir Testers - UK Wide oppurtunities

2009-05-08 Thread karim rayani
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

[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread karim rayani
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

[wtr-general] Re: Stripping url

2009-05-01 Thread karim rayani
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