[wtr-general] how can i execute only one worksheet in a spresdsheet in Rasta

2009-03-13 Thread rrash586
Hello all I have three worksheet in a spreadsheeet with tab name rasta_math,rast_string,and rasta_numger it is stored in spreadsheet with name as workt.xls how can i run only the single worksheet(rasta_math) when i use command rasta examples/workt.xls -f example/fixtures it run all the

[wtr-general] Re: Package creation

2009-03-13 Thread Alex Collins
Vikas, Ruby probably isn't what you're looking for in that case. Although I have previously seen some options for creating executables from Ruby code. I don't have any links or information on them. Alex On 13 Mar 2009, at 04:05, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Tiffany,

[wtr-general] Re: Hoe to Execute another scripts

2009-03-13 Thread Vikas Tulashyam
Hey Guys, Thanks for the time. I tried using Rake and Hoe but i couldn't find the exact way to create packages. Please help me with some examples if you guys can. Thanks in advance On Mar 12, 7:48 pm, marekj marekj@gmail.com wrote: sorry, but Hoe,http://seattlerb.rubyforge.org/hoe/ would

[wtr-general] Re: HttpWatch and Watir 1.6.2

2009-03-13 Thread JArkelen
Now it works, thanks guys! Cheers, John On Mar 12, 3:44 pm, marekj marekj@gmail.com wrote: I wrote this a year agohttp://www.marekj.com/2008/04/using-httpwatch-with-watir/ With Watir 1.6.2 you don't have to change anything. You stil work with IE right? and here is your bug: plugin =

[wtr-general] Re: soa testing

2009-03-13 Thread LFIdnl
For testing SOAP I use SoapUI tool. http://www.soapui.org/ . You can write unit-tests in it On 12 мар, 15:14, bright brightrobin1...@gmail.com wrote: Just to confirm, does Watir supportSOAtesting. --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] How to retrive table cell numbers by text value?

2009-03-13 Thread sHiVa
Hi all, Greetings!. I need to find out the row and column number of a table based on the given text. Do we have any direct method available in WATIR for this or do i need to write the old traditional class for retrieving cell numbers? Thanks Regards Siva Phaneendra Krapa

[wtr-general] Re: Overiding onclick javascript

2009-03-13 Thread Andy Sipe
Using this html file: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html head titleSample/title script type=text/javascript function doSomething(e) { alert('inside preexisting hanlder'); alert((window.event ? '' : 'not ') +

[wtr-general] Re: How to retrive table cell numbers by text value?

2009-03-13 Thread Darin Duphorn
I created a function to do it, I asked the same question at the beginning of the week. Take account I wrote it for just the body of the table and some tables we work with have multiple body section. def get_row_from_cell_text(table_id,cell_text) row_counter = 1 b_counter = 1 row_num = 0

[wtr-general] Re: Overiding onclick javascript

2009-03-13 Thread andrew . dahl
What follows is a working solution and some lessons learned in handling popups. Thanks for everyone that has helped along the way. I needed to handle confirmation popups. After trying autoit based solutions without success, I decided to try a solution that has worked for me in the past -

[wtr-general] Re: Overiding onclick javascript

2009-03-13 Thread Charley Baker
Andrew, Here's a link to Paul's event code, the files are on the attachments tab. http://wiki.openqa.org/display/WTR/Possibilities+For+New+Events+in+Watir hth, Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct

[wtr-general] How do you recommend working with table THEAD or TFOOT?

2009-03-13 Thread Moochie
TBODY works nice table_id.body How could I create THEAD table.head TFOOT table.head I looked for it in table.rb, I was going to see what it took to mimic table_id.body, but I could even find that. --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Error when trying to open Watir::IE browser

2009-03-13 Thread bert
Hi, Im a newbie to Watir and Ruby. My problem is that when I try to open an IE browser, it fails. Firefox works. I would like to be able to use both browsers at will. I verified that I physically have a file called ie.rb in the following directory: C:\Ruby1\lib\ruby\gems

[wtr-general] Re: How do you recommend working with table THEAD or TFOOT?

2009-03-13 Thread Darin Duphorn
TFOOT table.foot -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Moochie Sent: Friday, March 13, 2009 10:18 AM To: Watir General Subject: [wtr-general] How do you recommend working with table THEAD or TFOOT? TBODY works nice

[wtr-general] Re: How do you recommend working with table THEAD or TFOOT?

2009-03-13 Thread Darin Duphorn
Ok, I found the body tag C:\Ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Darin Duphorn Sent: Friday, March 13, 2009 10:21 AM To: watir-general@googlegroups.com Subject:

[wtr-general] checkbox selection

2009-03-13 Thread jitu
How do i select particular checkbox from the table as every checkbox has same id and i don't want to use the value of that checkbox Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread John Fitisoff
require 'watir/browser' Watir::Browser.default = 'ie' b = Watir::Browser.new --- On Fri, 3/13/09, bert tumbaol...@yahoo.com wrote: From: bert tumbaol...@yahoo.com Subject: [wtr-general] Error when trying to open Watir::IE browser To: Watir General watir-general@googlegroups.com Date:

[wtr-general] Re: How to print all the methods in the Class or Module out?

2009-03-13 Thread marekj
'require' and 'include' are completely two different concepts. When you require a ruby file you tell the current file to look for classes and modules in that file when needed, also any code not wrapped in method will be executed on require automatically. So you have to 'require' other file before

[wtr-general] Re: how can i execute only one worksheet in a spresdsheet in Rasta

2009-03-13 Thread Hugh McGowan
You can use the commandline options --continue rasta_math --pagecount 1. There are also ways to run a given number of records or starting from a specific record. http://rasta.rubyforge.org should have the details or you can look at rasta --help for a quick list. Thanks! Hugh

[wtr-general] Re: checkbox selection

2009-03-13 Thread marekj
In Watirloo there is class CheckboxGroup for that http://github.com/marekj/watirloo/blob/7c5e757c0b2efce76f8254198ca62bb1c6d533b8/lib/watirloo/watir_ducktape.rb or you can roll your own solution easy. Each checkbox has to have the same 'name' to belown in a group, id is irrelevant at this point.

[wtr-general] Re: Watir::Browser (NameError)

2009-03-13 Thread Bret Pettichord
remove include 'watir/browser' Shylaja wrote: Hi Iam trying to use the Browser class as follows with Watir 1.6.2 and facing a strange error require 'rubygems' require 'hpricot' require 'open-uri' require 'watir' include 'watir/browser' Watir::Browser.default = 'ie' appUrl =

[wtr-general] Re: Watir users: What is your role at work?

2009-03-13 Thread marekj
I used to be a tester. Then I became Test Design, Test Analyst, Test Developer, Test Architect etc... now I am just a Test Investigator I think. More and more I see testing as a discipline of investigating where Value is created and were it is Diminished. I can do it with automation code or

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread bert
Thanks for the suggestion, but still getting an error. It seems there may be something wrong with my environment or system or some gem package problem. I don't think its a code problem. I tried: require watir require 'watir/browser' Watir::Browser.default = 'ie' b = Watir::Browser.new and get

[wtr-general] Re: checkbox selection

2009-03-13 Thread Chuck van der Linden
given the situation you describe, how do YOU know which is the right checkbox to select if you are running the test manually? the answer to that might tell you what property you want to use to select the checkbox On Mar 13, 8:44 am, jitu jitu.ghar...@gmail.com wrote: How do i select particular

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread John Fitisoff
Sorry, missed the 'both browsers at will part'. Not sure if that's supported right now. BTW, you probably don't want to require 'watir' directly, all you really need when doing it that way is to require 'watir/browser'. But that's not causing your error. --- On Fri, 3/13/09, bert

[wtr-general] Re: css support in Watir

2009-03-13 Thread marekj
ie.element.document.currentStyle returns styles for example ie.element.document.currentStyle.fontSize ie.element.document.currentStyle.fontWeight. marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Wed, Mar 11, 2009 at 5:10 PM, Federico Zuppa

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread Al Snow
Change require 'watir/browser' to require 'watir/ie' Thanks, Al Snow Agile Software Automation Developer Linkedin: http://www.linkedin.com/in/alsnow Google Talk: jasnow1 Twitter: jasnow Date: Fri, 13 Mar 2009 09:29:01 -0700 Subject: [wtr-general] Re: Error when trying to open Watir::IE

[wtr-general] Re: Click it twice to make it work? click problem

2009-03-13 Thread orde
I ran into a scenario where an onmouseover event was required before clicking: @browser.button(:id, 'link_id').fire_event('onmouseover') @browser.button(:id, 'link_id').click On Mar 12, 3:54 pm, Jim Matthews jim_m...@swbell.net wrote: Have any of you run into this problem before?

[wtr-general] Re: Click it twice to make it work? click problem

2009-03-13 Thread orde
I ran into an scenario where an 'onmouseover' event was required before clicking: @browser.link(:id, 'link_id').fire_event('onmouseover') @browser.link(:id, 'link_id').click On Mar 12, 3:54 pm, Jim Matthews jim_m...@swbell.net wrote: Have any of you run into this problem before?

[wtr-general] Re: soa testing

2009-03-13 Thread Chris McMahon
On Mar 12, 8:31 am, Charley Baker charley.ba...@gmail.com wrote: No, Watir is a library to Automate browsers for web testing. That being said, Ruby has SOAP libraries(soap4r) that we're using quite extensively to test SOAP based services. The benefit of using a real language as opposed to

[wtr-general] Re: Counting selection option

2009-03-13 Thread Chuck van der Linden
Well in a sense it did. it told you that the close paren was unexpected. Meaning in this case that it expected something along the lines of (parm1, param2) and didn't get that.. it found the closeing paren before it found the second parameter (which would have followed a comma, since the

[wtr-general] Re: soa testing

2009-03-13 Thread Charley Baker
Good point, we're moving some services in that direction as well. It's nice to deal with. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Fri, Mar 13, 2009 at 1:09 PM, Chris McMahon christopher.mcma...@gmail.com

[wtr-general] Re: Failed to start because msvcr80-ruby18.dll was not found

2009-03-13 Thread Bret Pettichord
add require 'rubygems' to the top of your script. Dragan wrote: I am trying to install watir. That is what I have done: - install ruby 1.8.6-27 Release Candidate 2 - gem update --system - gem install watir Than I've got 'msvcr80-ruby18.dll was not found' problem when trying to run watir

[wtr-general] Re: Watir::Browser (NameError)

2009-03-13 Thread Chuck van der Linden
and add a line such as browser = Watir::Browser.new or you are likely to get an undefined method complaint when you to to use browser.element_by_xpath (unless there's something about Hpricot that is creating a browser object?) On Mar 13, 9:14 am, Bret Pettichord b...@pettichord.com wrote:

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread Chuck van der Linden
Seems like something must be missing.. I'm thinking your should consider saving your code off somewhere and doing a complete uninstall and reinstall of all watir stuff. I'm using IE.. I have the following in my script and it's working great require 'watir' require 'watir/testcase' #don't

[wtr-general] Re: Error when trying to open Watir::IE browser

2009-03-13 Thread Bret Pettichord
Adding require 'rubygems' might help. bert wrote: Thanks for the suggestion, but still getting an error. It seems there may be something wrong with my environment or system or some gem package problem. I don't think its a code problem. I tried: require watir require 'watir/browser'