[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 wrote: > > Hi Tiffany, > > Thanks for the tim

[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 wrote: > sorry, but Hoe,http://seattlerb.rubyforge.org/hoe/ > would not be the best wa

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

2009-03-13 Thread Shylaja
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 = "http://localhost:57200/index.html"; doc = Hpricot(open(appUrl)) e

[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 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 = control.brows

[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 wrote: > Just to confirm, does Watir supportSOAtesting. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[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: http://www.w3.org/TR/html4/strict.dtd";> Sample function doSomething(e) { alert('inside preexisting hanlder'); alert((window.event ? '' : 'not ') + 'found : window.event'); alert((e ? '' : 'not ') + 'found : window.event'); }

[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 - overridi

[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 O

[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 are

[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 \1.8\gems\watir-1.6.2

[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 t

[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

[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 wrote: > From: bert > Subject: [wtr-general] Error when trying to open Watir::IE browser > To: "Watir General" > Date: Friday, March 13, 2009, 8:15 AM > > Hi, Im a newbie to Watir and R

[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 y

[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' > > appU

[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 manuall

[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 ge

[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 wrote: > How do i select particular checkbox from the tab

[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 wrote:

[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 wrote:

[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?

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 wrote: > Have any of you run into this problem before? > > You have to clic

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

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 wrote: > Have any of you run into this problem before? > > You have to click

[wtr-general] Re: soa testing

2009-03-13 Thread Chris McMahon
On Mar 12, 8:31 am, Charley Baker 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 > VendorScript is that

[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 com

[wtr-general] Re: Counting selection option

2009-03-13 Thread marekj
parsers are predictive I guess. I have to constantly remind myself when I see an error from Watir that it could not find some element that maybe the page wasn't there at all much less the element. It's like saying "Elevator doesn't work" One might check for precondition "Has the building been buil

[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

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

2009-03-13 Thread bert
I tried require "watir/ie" and i get the same "no such file to load -- watir/ie" error On Mar 13, 1:05 pm, Al Snow wrote: > Change require 'watir/browser' to require 'watir/ie' > > Thanks, > Al Snow > Agile Software Automation Developer > Linkedin:http://www.linkedin.com/in/alsnow > Google Talk:

[wtr-general] Re: when I do ie.image().exists, it returns true but flash and click doesn't work

2009-03-13 Thread Chuck van der Linden
try treating it like a button input tags containing images often work as buttons.. (you can see this on the google search page in fact) try browserobject.button(:id, "supplmg').flash if it flashes, then try .click On Mar 12, 10:57 pm, shivanand desai wrote: >   Supplier: class="mandatory">

[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 wrote: > remove "include 'wat

[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 think

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

2009-03-13 Thread Chuck van der Linden
That's a decent analogy. I'd extend it by giving examples of how you would make use of something in both situations, and why you might NOT want to use "include" all the time Let me see if I can do this right.. if I'm using require then require 'otherhouse' # make me a sofa using the pattern

[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/br

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

2009-03-13 Thread Bret Pettichord
include and require should not be compared. include should be compared to inheritance. require should be compared to load. both require and load will execute files that contain ruby code. load will do it automatically. require will do it only once (i.e. if it hasn't been loaded already). req

[wtr-general] Re: When do you start writing WATiR scripts?

2009-03-13 Thread Bret Pettichord
Thanks for sharing your report. Very interesting. Bret Bhavna Kumar wrote: > It's MUCH more than a month, but I thought I would report back on what > we tried where we met with success. > > We tried the following: > > 1> A manual tester writing test cases and doing manual testing. An > "automa

[wtr-general] Re: Need help

2009-03-13 Thread Bret Pettichord
Thanks Chuck. Consider yourself the Sargent at Arms for the Watir Community. A Sargent at Arms maintains order in a deliberative body and carries a ceremonial mace. Chuck van der Linden wrote: > Per header on the main group page > > Please do not ask new questions in an unrelated thread

[wtr-general] Re: Need help

2009-03-13 Thread Chuck van der Linden
>>and carries a ceremonial mace which strangely appears to resemble a big Nerf Bat, and has "Clue_by_for" scrawled on the side in red sharpie On Mar 13, 3:38 pm, Bret Pettichord wrote: > Thanks Chuck. Consider yourself the Sargent at Arms for the Watir > Community. A Sargent at Arms maintain

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

2009-03-13 Thread marekj
I will echo again what Bret said: "include and require should not be compared" and repeat what I said earlier "'require' and 'include' are completely two different concepts." Having said that I wish I was more precise with metaphors about Apartments and knocking down walls. Last word: When you us

[wtr-general] Re: checkbox selection

2009-03-13 Thread marekj
FYI, I treat checkbox_group as a multi select list but the Text visible to the checkbox is not part of the checkbox. I try to find the pattern how checkboxes and their corresponding text descriptions are built in the test app. For third checkbox in a group is contained in TD Kiwi then I can get t