[wtr-general] How to handle Security Alert or Certificate Exception popup

2008-12-01 Thread Tony
Hi et all, Have noticed a lot of questions on how to handle the security alert window (Certificate expired window in IE), and thought would share the below- Have added an attachment- CertificateCloser.zip The below files are present- CertificateCheck.exe CertificateCheck.au3 Popup.lst Certificat

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Alex Collins
This is because in Excel you likely have the ellipsis character (...) as a single character not three separate period chracters (.). Ruby (and therefor Watir) doesn't support character sets / unicode as one might expect. Therefore you receive the á character instead. Try pasting the value in

[wtr-general] && operator not working

2008-12-01 Thread Prince3105
Hi Experts, I am totally new to Ruby and Watir. Before i was using QTP with VBscript. Today i have encountered a various problem. I have used below code to retrieve cell value from a table then i have to check these values with the actual value. version Ruby - 1.8.6-26 Final Release Watir - Wa

[wtr-general] Re: Security Information pop-up turns up two times, how to deal with the input between the two pop-up turning up?

2008-12-01 Thread Tony
Hi Wesley, Maybe the wait method has already finished loading ... and doesnt wait anymore .. You could clarify this by putting a puts statement before text_field. Also you could handle this 'Security Information' outside your code, so that it runs in parallel with your testcode. -Tony --~--~---

[wtr-general] Re: Help required : Ruby code error

2008-12-01 Thread Alan Baird
Natasha - Not sure if you solved this yet or not but you need to move the "include Login" statement inside the SB class in testbug.rb. The below worked for me. I had to change Watir::Browser to Watir::IE since I don't have 1.6 installed yet. The below code gets me as far as clicking the login bu

[wtr-general] Re: Connect to postgresql and write query to csv

2008-12-01 Thread Richard Lawrence
In your code that is supposed to be writing to the file, you're writing empty lines to the file with puts, but you're writing the column values to STDOUT. Change print column to out.print column Also, consider using FasterCSV instead of building your own CSV file from scratch. It makes the jo

[wtr-general] Re: Connect to postgresql and write query to csv

2008-12-01 Thread Charley Baker
You're not connecting to postgresql through Watir. This is a common misconception. Through Ruby, a programming language, you can use Watir which is a library to connect to browsers, other libraries such as Database access, web service calls, and anything else you want to do are possible through rub

[wtr-general] Connect to postgresql and write query to csv

2008-12-01 Thread maven999
Hi all, I'm trying to connect to a postgresql db through Watir, execute a query and output the result of the query to a .csv file. I can connect, query and print (puts) to screen correctly, but am unable to put the output to the .csv file. require 'watir' require 'postgres' conn=PGconn.connect(

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Darin Duphorn
The value in the listbox is displayed as "Filter by Coach..." selected="selected" >Filter by Coach... The problem seems to be when I read the value from a excel cell it contains á. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chu

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Chuck vdL
Can you show us the HTML that defines the listbox and its items? On Dec 1, 2:24 pm, "Darin Duphorn" <[EMAIL PROTECTED]> wrote: > The actuall value is "Filter by Coach..." > > The ... That follow the work coach are displaying as á. > > I believe in excel that ... Means á > > Not sure though. > > >

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Darin Duphorn
The actuall value is "Filter by Coach..." The ... That follow the work coach are displaying as á. I believe in excel that ... Means á Not sure though. -Original Message- From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chuck vdL Sent: Monday, December 01,

[wtr-general] Re: Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Chuck vdL
Is 'Blah" the actual value defined in the HTML for that listbox item, or is perhaps the browser UI visually truncating something longer down to what will fit in available space for the way the listbox is defined? On Dec 1, 1:11 pm, Moochie <[EMAIL PROTECTED]> wrote: > For some reason when I

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
OK posted a message in the forums over at SapphireSteel regarding my experience so far. here's a link for any that are interested to follow along. All in all I think if it will work, RubyInSteel could be a kick-ass IDE for working with Rub

[wtr-general] Unable to find the value "blah..." within a listbox. Value is retrieved from excel cell

2008-12-01 Thread Moochie
For some reason when I attempt to find a value in a listbox that contains three dots it doesn't find the value. Has anyone else seen this? Thanks, Darin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Genera

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Bret Pettichord
My preferred ruby style is (1) not to include parentheses when they are optional, and (2) not to pad them with extra spaces when they are used. Bret Chuck vdL wrote: > Brett, > > ACK I'm still at babysteps level of ruby coding and you're trying to > turn me into a contributor aren't you ;) > >

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Jason Shelton
I just copied and pasted that code, and I am getting 1,1,1 still!!! I don't know how you can be getting 1,2,3 in your file, and I am getting 1,1,1. Any ideas? Thanks in advance. -Shelton Subject: [wtr-general] Re: Excel Ranges and RubyDate: Mon, 1 Dec 2008 14:49:06 -0600From: [EMAIL PRO

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
On Dec 1, 12:14 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Please do note that all of the examples you've found so far represent > correct Ruby code. In many cases with Ruby, parentheses are optional. > > It might be best if you reported your findings to the Ruby in Steel > people so that th

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
Brett, ACK I'm still at babysteps level of ruby coding and you're trying to turn me into a contributor aren't you ;) ok ok I'll read up on patches and such and see if I can manage to submit something for this that doesn't totally screw up everything... this is how it starts isn't it. how you

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Darin Duphorn
Copy and paste this. I've tested it again and it worked. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range("A1:A3").Value = array From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Jason Shelton
No, I am using the same cell range. a1 - a3 is being populated on my machine, but it is populating each cell with element 0 in my array, not element 0, 1, and 2. -Shelton Subject: [wtr-general] Re: Excel Ranges and RubyDate: Mon, 1 Dec 2008 14:41:20 -0600From: [EMAIL PROTECTED]: watir-gen

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Darin Duphorn
Did you change the cell range. I was testing it on a spreadsheet where the range a1 - a3 was populated. DD From: watir-general@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Shelton Sent: Monday, December 01, 2008 2:36 PM To: watir-general@g

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Jason Shelton
I just tried your code on my machine, and I am still getting a 1 in all three cells. - Shelton> Date: Mon, 1 Dec 2008 11:27:28 -0800> Subject: [wtr-general] Re: Excel Ranges and Ruby> From: [EMAIL PROTECTED]> To: watir-general@googlegroups.com> > > I got this to work.> > excel = WIN32OLE.c

[wtr-general] Re: uninitialized constant Watir::IE (NameError)

2008-12-01 Thread marekj
duh! I misread this thing I'll add the line to example http://wiki.seleniumhq.org/display/WTR/Concurrent+Search require 'thread' require 'watir' require 'watir/ie' # needed for release 1.6.x marekj | Semantic Page Objects Automation Watirloo: Browser Page Helper Framework http://www.bitbucket

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Bret Pettichord
Please do note that all of the examples you've found so far represent correct Ruby code. In many cases with Ruby, parentheses are optional. It might be best if you reported your findings to the Ruby in Steel people so that they can fix their parser. Bret Bret Pettichord wrote: > Chuck vdL wr

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Paul Rogers
the ri command ( ri Kernel#raise in this case ) shows -- Kernel#raise raise raise(string) raise(exception [, string [, array]]) fail fail(string) fail(exception [, string [, array]]) -

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Bret Pettichord
Chuck vdL wrote: > (and if these things get stuff working, do I need to raise a jira > issue for this so we make sure to make these changes in the watir > source? (point me at instructions for this if they exist, so I do it > 'right' I'm used to using Jira at work, but in my experience every >

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
OK the putting that in 'brackets' (sorry still think of those as parenthesis, and [] as brackets..) eliminated that error and got me a new one.. (heh isn't this fun) Now the problem is on line 1078 column 39 of firefox.rbanother unexpected token, this time a comma.. So I went and looked,

[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-12-01 Thread Bret Pettichord
aidy lewis wrote: > However there are many new Watir potential users who might just know > it as a Ruby test tool. > Right. And now that Ruby is becoming a popular app language, I think people might think the R is Watir refers to the target application. --~--~-~--~~~

[wtr-general] Re: get text from page (regex) & assign to variable

2008-12-01 Thread Bret Pettichord
The thing to remember is that "puts" does an implicit "to_s" (or "inspect", i can't remember exactly) on its argument. Bret Sameh Abdelhamid wrote: > Very nice. Thanks Wes. > I couldnt find this anywhere! > Cheers. > > > On Wed, Nov 26, 2008 at 3:38 PM, wesley chen <[EMAIL PROTECTED] >

[wtr-general] Re: google_search.rb error

2008-12-01 Thread Bret Pettichord
Thanks for the report. Would you be able to log this in Jira? Bret Vidya wrote: > Hi, > I tried executing google_search.rb in windows 2000 m/c, Ruby version > 1.8.2 and watir is 1.6.2, I get the following error . > >> ruby google_search.rb >> > C:/Ruby/lib/ruby/gems/1.8/gems/windows-pr-

[wtr-general] Re: Help required : Ruby code error

2008-12-01 Thread Bret Pettichord
Aidy, Could you please create a wiki page with your list of editors. I thought we had a page started, but I can't seem to find it. It would be great to collect people's thoughts on the pros and cons of these editors for watir test development. Bret aidy lewis wrote: > Hi Natasha, > > Below i

[wtr-general] Re: indexes with watir and firewatir

2008-12-01 Thread Bret Pettichord
I get the following error: c:/ruby-186-26/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :index, 0 (Watir::Exception::UnknownObjectException) from (eval):2:in `html' from index.rb:6 Is this what you are seeing? aidy lewis

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Moochie
I got this to work. excel = WIN32OLE.connect('excel.Application') array = ('1,2,3').split(',') excel.Range("B207:D207").Value = array On Dec 1, 1:11 pm, Jason Shelton <[EMAIL PROTECTED]> wrote: > I have been using value, I accidentally left it out of my message.  What I > have looks like: > >

[wtr-general] Re: Click_no_wait for firewatir

2008-12-01 Thread Bret Pettichord
I've added this to the compatiblity issues table. http://wiki.seleniumhq.org/display/WTR/Firewatir+Compatibility aidy lewis wrote: > On 28/11/2008, al3kc <[EMAIL PROTECTED]> wrote: > >> Hi all, >> >> Does click_no_wait method exists in firewatir? I didn't found it in >> firewatir sorce file

[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-01 Thread Bret Pettichord
This works for me, although I am using ie 6.0. I'm wondering if this is broken with ie 7. Can any one else try this out? Bret patrick wrote: > hi, > > i am using the foll versions: > > win xp sp2 > ruby - 1.8.6 > watir - 1.6.2 > ie - 7.0 > > my code is as follows: > > irb > require "watir" > br

[wtr-general] Re: uninitialized constant Watir::IE (NameError)

2008-12-01 Thread Bret Pettichord
This example needs the following line to be added to it. require 'watir/ie' Any volunteers? Bret marekj wrote: > it looks like a bug. I am able to run this test on 1.5.3 release but > on 1.6.2 it only opens 1 IE window for me and test throws exception > uninitialized constant Watir::IE (Na

[wtr-general] Re: Error on just_add_watir?

2008-12-01 Thread Bret Pettichord
I don't see anything in here that is FireWatir specific. Bret Tim Koopmans wrote: > Thanks for that, will look into it. Not sure on firewatir stuff, I've > been out of the loop for last month or so =) > > Regards, > Tim > > On Nov 29, 9:23 am, Jim Cropcho <[EMAIL PROTECTED]> wrote: > >> Timeo

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Alex Collins
Try putting bracket around the *args. You could read the *args as being "any number of arguments to the method". On 1 Dec 2008, at 19:09, Chuck vdL <[EMAIL PROTECTED]> wrote: > > OK so I went and looked.. it's not javascript > > -=-=- snip-=-= > class Radio < RadioCheckCommon > def initiali

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Paul Rogers
try changing it to def initialize( *args ) the * means that it takes a variable number of parameters as an niput to the method, I think youd use it like this def my_method( *args ) if args.length ==2 puts "arg[0] is " + arg[0] else puts "you didnt supply 2 args" e

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Bret Pettichord
Thanks for sharing your report. I looked at Ruby in Steel over a year ago and it sounds like it has made a lot of progress since then. Back then, our developers were using Visual Studio as well. I agree that it is very attractive for this kind of environment. Bret Chuck vdL wrote: > I'm havin

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Jason Shelton
I have been using value, I accidentally left it out of my message. What I have looks like: array = (1,2,3)excel.Range("A1::A3").Value = array This puts a '1' into cells a1, a2, and a3. I want a1 = 1, a2 = 2, a3 = 3. Thanks in advance for your help. - Shelton> Date: Mon, 1 Dec 2008 10:57

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
OK so I went and looked.. it's not javascript -=-=- snip-=-= class Radio < RadioCheckCommon def initialize *args =-=-=-= snip =-=-=-= its the * in *args that's giving it a fit.. Now understand please that my ruby coding skills are in their infancy.. and I've not gotten into defining my

[wtr-general] Re: Excel Ranges and Ruby

2008-12-01 Thread Moochie
Try using value at the end Blah = excel.worksheets(4).Range("B2:J2").Value puts Blah On Dec 1, 12:46 pm, [EMAIL PROTECTED] wrote: > All, > > I am trying to enter the contents of an array into an excel range. > Here is a sample of what I am doing now: > > array = (0,1,2) > > excel.Range("A1::A

[wtr-general] Excel Ranges and Ruby

2008-12-01 Thread jas . shelton
All, I am trying to enter the contents of an array into an excel range. Here is a sample of what I am doing now: array = (0,1,2) excel.Range("A1::A3) = array When I do this cells a1, a2, and a3 are all set to 0, and not 0,1,2 as I am expecting. Can someone please assist me with this? I can e

[wtr-general] Re: Watir & Ruby in Steel

2008-12-01 Thread Paul Rogers
heres my guess - the firewatir code uses lots of whats really javascript embedded in the ruby file. I think the parser is having a hard time figuring out whats ruby and whats javascript If you poke around in the lines suggested by the parser, you might be able rearrange some of the code to bette

[wtr-general] Re: How to click dijit button char

2008-12-01 Thread Chuck vdL
re having words with the developer.. The dev probably has what they feel is a good reason for using the mouseup to select the item from the list.. Except for instances were it affects testability, or performance, I generally try to stay away from telling the devs how to do their job (lest they t

[wtr-general] Watir & Ruby in Steel

2008-12-01 Thread Chuck vdL
I'm having a look at Ruby in Steel as a potential IDE for doing testing automation with Watir. Mostly because: 1) all my devs use Visual Studio for their work, so it puts me on the same platform, gives me good integration with our source control etc. 2) Intellis

[wtr-general] Re: How to click dijit button char

2008-12-01 Thread maven999
Chuck, your guess was correct. The following code worked in that I was able to click the down button and cause the dropdown list to appear: $ie.div(:class, 'dijitDownArrowButtonInner').fire_event('onmousedown') But when I then try to select an item in the dropdown list, 'onmousedown' does not w

[wtr-general] What do you want to see in Watir?

2008-12-01 Thread Pete Dignan
If you've been following along, by now you know that WatirCraft is a major contributor to the ongoing development of Watir. Many of the fixes and enhancements over the past six months have been a direct result of Bret's 100% dedication to the project, and more recently the involvement of Jim Matt

[wtr-general] Re: indexes with watir and firewatir

2008-12-01 Thread Michael Hwee
What do you get if you do this in firewatir? row.cell(:index,1) Is this the same as row.cell(:index,0) ? - Original Message From: aidy lewis <[EMAIL PROTECTED]> To: watir-general@googlegroups.com Sent: Friday, November 28, 2008 4:04:34 AM Subject: [wtr-general] indexes with watir a

[wtr-general] Re: 'no such file to load' when running firewatir unit test

2008-12-01 Thread marekj
Jason, The unittests are not designed to be run after gems are installed. all unittests are desing to run in Development mode - you need to check out the source from SVN and run the unittests on trunk This is a known issue, and unittests should probably not be packaged into gems. more here; http://

[wtr-general] 'no such file to load' when running firewatir unit test

2008-12-01 Thread Jason
I am using Ruby version 1.8.6 and Firewatir version 1.6.2 in Windows XP. I installed firewatir using 'gem install firewatir', but when I try to run the included unit tests, mozilla_all_tests.rb, I get the following error: c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_origi

[wtr-general] Re: 1.6.2 - browser.attach question

2008-12-01 Thread marekj
Lisa, I have not needed to run tests on Firefox but any day now I will so I am trying to see how I can make Firefox execution transparent to my tests. Watirloo is a pilot project look for me to make tests run on any browser and have a unified interface and then some extra helpers like radio_group a

[wtr-general] Re: Assigning Div content a Text Value

2008-12-01 Thread Paul Rogers
i think you can do this, Id just question why you want to do this. body_div = ie.div(:id, 'EditorBody') body_div.document.innerText='Hellow World!' is whtat I think you need Paul On Mon, Dec 1, 2008 at 7:55 AM, Nathan Lane <[EMAIL PROTECTED]> wrote: > You must have some kind of JavaScript supp

[wtr-general] Re: Assigning Div content a Text Value

2008-12-01 Thread Nathan Lane
You must have some kind of JavaScript support in your Web Application to do that -- Watir just controls the browser -- it doesn't provide a way to manipulate your web page -- your web page must be all-inclusive of itself, so if you want your DIV to be able to have text added, then your web page mus

[wtr-general] Re: jssh not compatible for firefox3.0.4

2008-12-01 Thread Nathan Lane
The JSSH module here works with Firefox 3.0.4 http://wiki.seleniumhq.org/display/WTR/FireWatir+Installation#FireWatirInstallation-3%29InstalltheJSSHFirefoxExtension On Mon, Dec 1, 2008 at 12:20 AM, krishna csr <[EMAIL PROTECTED]> wrote: > > > is there a jssh compatible for firefox 3.0.4 ? > if no

[wtr-general] Re: "Find Pop-up text and close" function is not working

2008-12-01 Thread Prince3105
when i execute the function , popup_text[0] returns nil. Still i am searching for a solution and trying all methods in WinClicker class but not yet received a solution. So please guys give some ways to reach the target. Thanks, Prince3105 On Dec 1, 9:20 am, "wesley chen" <[EMAIL PROTECTED]> wrot

[wtr-general] jssh not compatible for firefox3.0.4

2008-12-01 Thread krishna csr
is there a jssh compatible for firefox 3.0.4 ? if not what is the latest firefox version that jssh supports. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email t