[wtr-general] WatirSPlash Question for Jarmo

2010-09-27 Thread tester86
gem install watirsplash I get the following error. ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Library/Ruby/Gems/1.8/gems/win32-api-1.4.6/ CHANGES Any ideas why I am getting these errors Jarmo? Thanks tester86 -- Before posting, please read http://watir.com/support

[wtr-general] Re: Selecting a value from a drop down list

2010-05-26 Thread tester86
engineer a simple solution as this one. I have found one thing interesting though. It is a challenge to automate a Sproutcore application but it is the best challenge a automation engineer will face. Once again thanks for everyone's help and feedback. tester86 On May 20, 3:03 pm, Chuck van der Linden

[wtr-general] Selecting a value from a drop down list

2010-05-19 Thread tester86
to select Option 2 or Option 3 but I cannot select Option 2 or 3 using select_list or triggering fire_events. Does any one have any idea's on know to resolve this issue. Thanks tester86 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received

[wtr-general] Re: Selecting a value from a drop down list

2010-05-19 Thread tester86
I tried $b.li(:class, Option 2).click But I still got the same error. On May 19, 9:27 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, May 19, 2010 at 4:13 PM, tester86 sagar.am...@gmail.com wrote: ul class=select_options  li class= selected highlighted data-value=Option

[wtr-general] Re: Drop down menu

2010-03-18 Thread tester86
I have been testing this part of my script in IRB, I also triggered two fire_event onmousedown then onmouseup. Also tried onmousedown sleep 1 then onmouseup, tried and tested all the possbile combinations and methods. When onmousedown is triggered in the table it generated the drop down list --

[wtr-general] Re: Drop down menu

2010-03-17 Thread tester86
wrote: Hi In case when there is drop down arrow, the elements are set using text_field sometimes. Please try this option also. e.g. $ie.text_field(:name,'').set('') tester86 wrote: Hi I did fire a javascript event that will set the focus in the drop down list: $b.table(:index, 1)[2

[wtr-general] Re: Drop down menu

2010-03-16 Thread tester86
just before attempting the select statement? Hope this helps! -Tiffany On Mar 15, 2:43 pm, tester86 sagar.am...@gmail.com wrote: I need to click on a drop down.  I have a script that will set the focus in the drop down list then when I go to select the value it does not select

[wtr-general] Drop down menu

2010-03-15 Thread tester86
I need to click on a drop down. I have a script that will set the focus in the drop down list then when I go to select the value it does not select the list. Manually: When I click in the drop down field it gets activated then when I click on the drop down arrow it will display the list.

[wtr-general] IRB and Firewatir script

2010-02-18 Thread tester86
Hi In an IRB session when I trigger an onmousedown and onmouseup event on a link that generates a modal dialogue box it shows the modal dialogue. Then when I copy that code into a test case and execute firefox does not generate the modal dialogue. Code: $b.span(:class, value

[wtr-general] Question About Watir

2010-02-17 Thread tester86
Hi I am automating a website where every time the ID's change and my scripts need to cope with this change. For example if I click on a link and next time the value of the link will change. Is there any scope or any implementation that can be implemented to cope with this. I have talked with a

[wtr-general] Re: Question About Watir

2010-02-17 Thread tester86
Hi I came across that example before on automation frameworks. I have already started to implement a framework. But my question was is there any way Watir supports automatically generated ID's? Thanks -- You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-02-15 Thread tester86
Hi I have tried all of the different scenarios in order to perform a double click action when clicking a text field. But in Firewatir 1.6.5 the fire_event(ondblclick) is not working. Is there an issue with firewatir 1.6.5 because I saw another thread where a person was having the same issue with

[wtr-general] Re: div values in table

2010-02-09 Thread tester86
Hope that helps. orde On Feb 8, 12:45 pm, tester86 sagar.am...@gmail.com wrote: Sorry but in IRB when I do a= $b.table(:index, 1)[2][11].html print 14.56 b=$b.table(:index, 1)[2][11].html print 85.00 total = a +  b in IRB it returns 14.5685.00 when it should return 99.56

[wtr-general] div values in table

2010-02-08 Thread tester86
hi I am printing out the value in a column in irb and then I want to store that value in a variable and calculate the two values. If I do $b.table(:index, 1)[2][11].html print $90 $b.table(:index, 1)[3][11].html print $80 Then if I do: def test_total(a,y) a= $b.table(:index, 1)[2][11].html

[wtr-general] Re: div values in table

2010-02-08 Thread tester86
Please disregard this post...I have got it working. Thanks On Feb 8, 2:33 pm, tester86 sagar.am...@gmail.com wrote: hi I am printing out the value in a column in irb and then I want to store that value in a variable and  calculate the two values. If I do $b.table(:index, 1)[2][11].html

[wtr-general] Re: div values in table

2010-02-08 Thread tester86
Sorry but in IRB when I do a= $b.table(:index, 1)[2][11].html print 14.56 b=$b.table(:index, 1)[2][11].html print 85.00 total = a + b in IRB it returns 14.5685.00 when it should return 99.56 -- You received this message because you are subscribed to the Google Groups Watir General group.

[wtr-general] Re: div values in table

2010-02-08 Thread tester86
please diregard this post I have found the solution. 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:

[wtr-general] Re: div values in table

2010-02-08 Thread tester86
to a numeric class.  In this case, you want to use .to_f: total = a.to_f +  b.to_f Hope that helps. orde On Feb 8, 12:45 pm, tester86 sagar.am...@gmail.com wrote: Sorry but in IRB when I do a= $b.table(:index, 1)[2][11].html print 14.56 b=$b.table(:index, 1)[2][11].html print 85.00

[wtr-general] Handle Failures in Watir

2010-02-04 Thread tester86
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

[wtr-general] Re: Handle Failures in Watir

2010-02-04 Thread tester86
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 sagar.am...@gmail.com wrote: Hi Question for the watir group. When I run my test sometimes it fails if it cannot find

[wtr-general] CSS Selectors

2010-02-02 Thread tester86
or point me in the right direction to using CSS selectors with examples. Thanks tester86 -- 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

[wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-01-29 Thread tester86
Can you make it when you click twice? ***.click ***.click I tried .click .click twice on the label, but it did not click on the label. -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: FireWatir: fire_event(onkeypress) returning error message

2010-01-29 Thread tester86
Can you make it when you click twice? ***.click ***.click I tried .click .click twice on the label, but it did not click on the label. -- After debugging I noticed that when I do $b.element_by_xpath('// label[text()=Research]').click, in fire bug it does click on the label but the

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

2010-01-28 Thread tester86
, 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 RUBYhttp://snippets.dzone.com/posts/show/6133 On 1/25/10, tester86 sagar.am...@gmail.com wrote: Hi Using Watir is it possible

[wtr-general] FireWatir: fire_event(onkeypress) returning error message

2010-01-28 Thread tester86
Hi I am using firewatir and when I use the following code: $b.text_field(:type, text).set(Res).fire_event(onkeypress) I also tried $b.text_field(:type, text).set(Res).fire_event ('onkeypress') I get the following error message: NoMethodError: undefined method `fire_event' for 0:Fixnum This

[wtr-general] Re: ERROR: Error installing watir:

2010-01-25 Thread tester86
Hi I'm not 100% sure but I think you might have to install nmake. On Jan 22, 8:17 pm, Jag jag.jag...@gmail.com wrote: Hi, After installing Ruby 1.8.6 (Also tried 1.9) then followed the steps gem update --system gem install watir getting this error with ruby1.9 ERROR:  Error

[wtr-general] RE: Drag and Drop using Watir

2010-01-21 Thread tester86
Hi I have been doing some reserach on drag and drop using Watir. From what I can understand it is not feasiable yet, but it can be down via fire events. I have managed to select the div element that I want to drag to another screen view but I cannot seem to drag it into that view. When I use

[wtr-general] Re: Drag and Drop using Watir

2010-01-21 Thread tester86
-general/browse_thread/thread/d45e... -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of tester86 Sent: Thursday, January 21, 2010 1:38 PM To: Watir General Subject: [wtr-general] RE: Drag and Drop using Watir Hi I have

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread tester86
to execute my scripts against both IE and FF. Thanks On Jan 20, 8:07 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 20, 2010 at 3:00 PM, tester86 sagar.am...@gmail.com wrote: Browser ie I think this should be: browser: ie Željko -- You received this message because

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-20 Thread tester86
used the example from: http://wiki.openqa.org/display/WTR/Browser.new but I cannot get it to execute. Thanks On Jan 20, 8:24 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 20, 2010 at 3:20 PM, tester86 sagar.am...@gmail.com wrote: Sorry my typo in options.yml I have

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-19 Thread tester86
in having them be separated. On Fri, Jan 15, 2010 at 11:31 AM, tester86 sagar.am...@gmail.com wrote: Hi Please note that this is an example of what tests. Class TestGoogle Test::Unit::TestCase def test_start() $b=Watir::Browser.start(https://www.google.com;) end def

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-15 Thread tester86
Hi Please note that this is an example of what tests. Class TestGoogle Test::Unit::TestCase def test_start() $b=Watir::Browser.start(https://www.google.com;) end def test_entertext() $b.text_field(:name, SearchField).set(Search) $b.button(:name, btnG).click end def test_verify() if

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-14 Thread tester86
Hi Question: I am using a testing framework using Watir and I have given a global variable $b. I am running my scripts against FF. But I also want to execute them against IE. I am using the example from: http://wiki.openqa.org/display/WTR/Browser.new But when I execute in IE I get the error $b

[wtr-general] Re: Watir - Going down a to read the next element and perform click action on a button

2010-01-12 Thread tester86
On Mon, Jan 11, 2010 at 1:51 PM, tester86 sagar.am...@gmail.com wrote: Hi I maybe starting another thread but thought I'd post my message on here. How does Watir support Javascript (sproutcore). For example if I wanted to click on a checkbox sproutcore considers it as a link which has

[wtr-general] Re: Watir - Going down a to read the next element and perform click action on a button

2010-01-11 Thread tester86
Hi I maybe starting another thread but thought I'd post my message on here. How does Watir support Javascript (sproutcore). For example if I wanted to click on a checkbox sproutcore considers it as a link which has an ID assoication. -- You received this message because you are subscribed to the

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-05 Thread tester86
Chen. For life, the easier, the better. On Mon, Jan 4, 2010 at 11:03 PM, tester86 sagar.am...@gmail.com wrote: Hi From my research as far as I understand you can not drive watir scripts at the same time in the browser unless you create seperate scripts for them. I have a Test::Unit

[wtr-general] Re: Driving Watir scripts in IE and Firefox at the same time

2010-01-05 Thread tester86
of code not duplicating the code twice.. On Jan 5, 9:30 am, tester86 sagar.am...@gmail.com wrote: Hi Or would you like to do something like this (not tested)? [Watir::IE.new, FireWatir::Firefox.new].each do |browser|   browser.goto google.com   browser.goto yahoo.com end The above

[wtr-general] Re: watir does not click on button when specified

2010-01-05 Thread tester86
Selenium finds the button (here is the selenium) //a...@id=tc676]/span/label but it does not work in Watir? On Jan 5, 4:23 pm, tester86 sagar.am...@gmail.com wrote: Hi I have the following watir code: $b.link(:href, javascript:;).click but it does not click on the button. a id

[wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread tester86
Hi From my research as far as I understand you can not drive watir scripts at the same time in the browser unless you create seperate scripts for them. I have a Test::Unit script that runs in Firefox but when I specify IE it just opens a new browser and nothing happens. I am guess that I would

[wtr-general] Re: Tables in Watir - Perform Verification Check

2009-12-15 Thread tester86
No the cell column already has the value I want to check to see if that value is the same on the web page. -- 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

[wtr-general] Tables in Watir - Perform Verification Check

2009-12-14 Thread tester86
I have a table that has a sub class td class = table x tr td class =Y td class =x90/td /tr I want to perform a validation check where it will read the data between the tags and pass or fail depending on the value. I searched the group and internet but could not see anything. Does anyone have

[wtr-general] Question for Watir Group

2009-12-08 Thread tester86
Hi, This is more of a question: Has anyone tried to use Zentest with there Test::Unit scripts on Windows 7. If anyone has can they let me know there thoughts. Thanks -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send

[wtr-general] Re: Watir Examples...Need Help

2009-11-20 Thread tester86
for a different framework?  You can find examples of various frameworks here: http://wiki.openqa.org/display/WTR/Examples Hope this helps! -Tiffany On Nov 19, 1:14 pm, tester86 sagar.am...@gmail.com wrote: I been through all the main websites with regards to watir commands, but I need some

[wtr-general] Watir Examples...Need Help

2009-11-19 Thread tester86
I been through all the main websites with regards to watir commands, but I need some documention or something to verify data on a web page and return that value, do I have to include rspec.is there any good guides to watir apart from the 5 min quick example.

[wtr-general] WatirRecorder

2009-11-19 Thread tester86
Can someone give me the link to where I can download the watirRecorder+ +...as on the homepage it is not there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email

[wtr-general] Re: Watir Help

2009-11-12 Thread tester86
- they have no 'a' in their name, and don't care. On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote: Using cucumber and watir - Vista and Windows 7 Get the following error message:      Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-12 Thread tester86
...@gmail.com wrote: Hi, Please try to use slep(10) commands. It means ie.goto(htp://google.com) sleep(10) ie.text_field(:name,q).set(Raveendran) sleep(10) . . .  I hope it works now. Rit ? On Thu, Nov 12, 2009 at 12:48 AM, tester86 sagar.am...@gmail.com wrote: Another Error From

[wtr-general] Watir IDE Recorder

2009-11-12 Thread tester86
Hi. I went to download the watir ide recorder and it mentioned it requires .net framework 1.4 and then I installed the .net framework. Then I went to install watir ide recorder it told me again I need the .net framwork but I hvae already installed it. I have done a windows secuirty update, but

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-12 Thread tester86
scripts into an irb session and they ran without any problems - even without the sleep commands (you shouldn't need those).  Try stepping through your scripts, line by line in irb so you can watch what happens in with each step. Hope this helps, -Tiffany On Nov 12, 7:42 am, tester86

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-12 Thread tester86
When I type the commans into IRB here is was I get as output: irb(main):001:0 require 'Watir' = true irb(main):002:0 test_site='www.google.com' = www.google.com irb(main):003:0 IE=Watir::IE.new = #Watir::IE:0x3e09a40 @url_list=[about:blank], @typingspeed=0.08, @pause_af ter_wait=0.1,

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-12 Thread tester86
-1.6.2/lib/watir/ input_elements .rb:323:in `set' from (irb):5 On Nov 12, 12:47 pm, tester86 sagar.am...@gmail.com wrote: Thanks for you input Tiffany but when I run the script and execute in IRB I get the following error message: NameError: undefined local variable or method `ie

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-12 Thread tester86
running your command prompt session with administrator privileges?  I had a problem when I moved to Vista where two browsers were being opened.  Try the suggestions Bill Agee gave me: http://tinyurl.com/ygn4fpx Hope this helps! -Tiffany On Nov 12, 11:47 am, tester86 sagar.am...@gmail.com wrote

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-11 Thread tester86
browser.text   puts browser.url   puts browser.title Bret tester86 wrote: Thanks for all the help I managed to get ruby and watir all up and running. But I have a question, when I was using cucumber I get this error message and they told me to put this post in the watir group: c:/ruby

[wtr-general] RUBY- UNDEFINED METHODS FOR EVERYTHING

2009-11-11 Thread tester86
I keep on seeing the following error everything I try to perform an verifcation check or find a text box on the page and enter in text: undefined method `contains' for #Watir::IE:0x89684c8 (NoMethodError) Can someone please explain why I am getting these errors. Even when I try to run a sample

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
, Add first line -- require 'rubygems' Remove line no.2 -- include Watir I hope it works now. If its not working then Please provide more details about Watir Verison and Ruby version. Thanks On Tue, Nov 10, 2009 at 3:19 AM, tester86 sagar.am...@gmail.com wrote: I am trying to run a watir

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
watir 1.4.1 On Nov 9, 9:46 pm, Bret Pettichord b...@pettichord.com wrote: What version of Watir are you using? tester86 wrote: I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir

[wtr-general] IRB Console

2009-11-10 Thread tester86
In IRB I get the following message and according to Watir In 5 Minutes Im guessing my output is incorrect.. irb(main):001:0 require watir = true irb(main):002:0 ie = Watir::IE.new = #Watir::IE:0x825f690 @ie=#WIN32OLE:0x825f640, @error_checkers=

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
, 1.2.7) win32-process (0.6.1, 0.5.3) win32-sapi (0.1.5, 0.1.4) win32-sound (0.4.2, 0.4.1) win32console (1.2.0) win32ole-pp (1.2.0) windows-api (0.4.0, 0.2.0) windows-pr (1.0.8, 0.7.2) xml-simple (1.0.12) Is there any gem that I am missing that is causing the error? On Nov 10, 8:10 am, tester86

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
'?) That is: require 'watir' require 'rubygems' #require win32ole ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).click On Tue, Nov 10, 2009 at 8:42 AM, tester86 sagar.am...@gmail.com wrote: Here is the list of my local gems (just incase

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
my gems and everything and start again..I did that before but it did not work. On Nov 10, 9:03 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Nov 10, 2009 at 3:10 PM, tester86 sagar.am...@gmail.com wrote: watir 1.4.1 Please uninstall it and install watir via gem. Ask

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
variables for ruby? On Nov 10, 9:38 am, Bret Pettichord b...@pettichord.com wrote: I am wondering if maybe this is a permissions problem. Are you using Windows 7? It would help if you printed the error and stack trace that you are now getting. Bret tester86 wrote: This morning I just

[wtr-general] Re: Really....Ruby + Watir + Command Line

2009-11-10 Thread tester86
Thanks for all the help I managed to get ruby and watir all up and running. But I have a question, when I was using cucumber I get this error message and they told me to put this post in the watir group: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists':

[wtr-general] Watir Help

2009-11-09 Thread tester86
Using cucumber and watir - Vista and Windows 7 Get the following error message: Unble to locte element, using :nme, q (Wtir::Exception::UnknownObjectException) ./fetures/step_definitions/serch_steps.rb:11:in `/I serch for (.*)/'fetures/serch.feture:8:in `When I serch for cucumber

[wtr-general] Really....Ruby + Watir + Command Line

2009-11-09 Thread tester86
I am trying to run a watir script: require 'watir' include Watir ie = Watir::IE.new ie.goto(http://google.com;) ie.text_field(:name, q).set(watir) ie.button(:name, btnG).submit when I run it from command line ruby filename.rb I get the following error message: