[wtr-general] Re: A printable Watir Tutorial

2010-02-05 Thread Darryl (gem dandy) Brown
I think that this is a good idea. My thoughts are along the lines of the online Pickaxe => http://www.ruby-doc.org/docs/ProgrammingRuby/ I'm not sure of the effort required to get there but I'm willing to help. At minimum it would be good to have an index. Darryl Central Ohio On Feb 5, 7:49 p

[wtr-general] Wonderful Job on the Watir wiki

2010-02-03 Thread Darryl (gem dandy) Brown
Great job on the Watir wiki Alister !! Thanks, Darryl -- 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: http://wiki.openq

[wtr-general] Re: Clear cache and temporary internet internet explorer files.

2010-01-16 Thread Darryl (gem dandy) Brown
Correction to item 2) below: Un-comment - print "Deleted #{n} items\n" at the end of del_cache.rb Darryl On Jan 16, 10:51 pm, "Darryl (gem dandy) Brown" wrote: > Hi Chandrika, > > Try the following code: > > path = File.dirname(__FILE__) << '/&#x

[wtr-general] Re: Clear cache and temporary internet internet explorer files.

2010-01-16 Thread Darryl (gem dandy) Brown
Hi Chandrika, Try the following code: path = File.dirname(__FILE__) << '/' cache = path << "del_cache.rb" system "ruby #{cache}" 1) This assumes that del_cache.rb is in the same directory as the calling script. Change path to suite your needs. 2) Un-comment line 200 in del_cache.rb to see how

[wtr-general] Re: How to copy text with Watir

2009-10-14 Thread Darryl (gem dandy) Brown
Hi Peter, a = $IE0.text_field(:id,'field1').value $IE0.text_field(:id,'oherField').set(a) good luck, Darryl On Oct 9, 4:30 am, Peter Kras wrote: > Hi! > > I need to check such situation: > > I have text field with id="field1" that contains text '250M'. When you > click on it - only '250' beco

[wtr-general] Re: Watir -Ajax Application working in IE6 but not in IE7

2009-10-14 Thread Darryl (gem dandy) Brown
Hello Amudha, 1) Can you post the exact line of code that you're having a problem with? 2) Can you try this on a XP setup with IE7? 3) Are you getting a "object not found error? 4) Can you post the exact error that you are getting as well? Regards, Darryl On Oct 14, 3:07 am, Amudha Priya wro

[wtr-general] how to handle an immediate popup

2009-09-25 Thread Darryl (gem dandy) Brown
Our test team is facing an interesting challenge with a popup. The web server that we are testing has a password protected mode wherein when the url is accessed, there is an immediate login popup. There is no opportunity to use a "click_no_wait" as there are no buttons to click - the first thing t

[wtr-general] Re: Script hangs while trying to close pop up

2009-08-26 Thread Darryl (gem dandy) Brown
Hello Namit, Please see the google example in my response to the following post - "will watir-1.6.2 support pop-up message" http://groups.google.com/group/watir-general/browse_thread/thread/eeb37d3a8562936/e9ec1258c2aa547f?hl=en&q=#e9ec1258c2aa547f You must use click_no_wait Good luck, Darryl

[wtr-general] How to determine frame indexing

2009-08-20 Thread Darryl (gem dandy) Brown
Hello All, All of the web pages that I test use nested frames. I have used webmetrics quite a bit to identify nested elements. I've also used the irb / flash method to identify the elements. Our newer webserver is using ajax and webmetrics is no longer effective. I've been trying to use Firebug t

[wtr-general] Re: Testing Email

2009-08-07 Thread Darryl (gem dandy) Brown
Hello Bret, I'm doing email testing on our web based monitoring cards. Currently using a tweaked version of the Python mock SMTP server - mailsink.py. It displays the emails in the console and you can save them to a log file as well. I'm reading the log file with Ruby to validate the message cont

[wtr-general] Re: Error while retrieving an integer from spreadsheet

2009-08-03 Thread Darryl (gem dandy) Brown
Hello Balbao, $regno = oo.cell(row,6).to_i will do what you're looking for. Darryl Dylan wrote: > Add ".to_i" in the middle there, because like you said you aren't > getting an integer back, so you have to make it one. So you end up > with: > > $regno = oo.cell(row,6).to_i.to_s > > -Dylan >

[wtr-general] Re: Time to learn Watir

2009-07-10 Thread Darryl (gem dandy) Brown
Hello Swapnal, If you have a curiosity for computers in general and like to learn if you enjoy 'chasing the 'rabbit', you will do well. Prior experience with automation and programming will make the journey shorter - approx. 3 months. No experience - 6 -9 months to be productive. I'm not sayi

[wtr-general] Re: How to click on text on a cell which locate inside undefined tables

2009-06-12 Thread Darryl (gem dandy) Brown
Hello Shiran, There is not a way of clicking on text within a table. However, you can read the text from a table. Example: mytext = $ie.frame(:index, 3).frame(:index, 3).table(index, 2)[1] [1].text puts mytext Regards, Darryl On Jun 12, 8:52 am, Shiran Gunarathna wrote: > I am having an is

[wtr-general] Re: Office 2007 - Excel

2009-06-08 Thread Darryl (gem dandy) Brown
Hello to all, Thanks for replies - just wanted to make sure Excel for Watir would still be OK. Regards, Darryl On Jun 8, 11:31 am, Loft_Tester wrote: > we have been running in compatibility mode on for office 2003 on our > test machines that seems to working fine --~--~-~--~~--

[wtr-general] Office 2007 - Excel

2009-06-08 Thread Darryl (gem dandy) Brown
We have developed several data driven Watir tests using Excel in Office 2003 as the data store. Has anyone else migrated to Office 2007? I'm about to upgrade but thought I'd try to get some feedback from other people who have done this already (?? I hope) Thanks, Darryl Brown --~--~-~--~-

[wtr-general] Re: WatirCraft LLC is closing

2009-06-05 Thread Darryl (gem dandy) Brown
Hello Bret and Pete, I'm fairly new to Watir...only 8 months in but I've got my scuba gear on now. I'd like to personally thank you guys for everything. Myself like so many others...saying I'll wait until WatirCraft takes more shape before I call. Best of luck, Darryl Brown On Jun 3, 11:45 pm

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread Darryl (gem dandy) Brown
s in that page. > Still I could not do it. > > Please help me. > > Thanks > Satish. > > On May 4, 1:20 pm, "Darryl (gem dandy) Brown" > br...@roadrunner.com> wrote: > > Hello Satish, > > > Unit test will currently not run properly '

[wtr-general] Re: No Method Error

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Chandu, Sorry, I didn't finish my thoughts at the end of the earlier reply - For future posts, it is advisable to reduce the script down to the problem area if possible. In this case, perhaps leave off the lines after the jsclick call. Regards, Darryl On May 4, 1:12 pm, "D

[wtr-general] Re: Issue with Running the Unit Tests

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Satish, Unit test will currently not run properly 'out of the box' with Watir ver 1.6. Please follow this link: http://wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests Best regards, Darryl On May 4, 1:06 pm, satish wrote: > I got following error when I try to run unit tests from l

[wtr-general] Re: No Method Error

2009-05-04 Thread Darryl (gem dandy) Brown
Hello Chandu80, The 'No Method Error' error is due to fact that the method name called << jsclick($ie,"OK")#Error shown here >>. Does not match the method name that is defined << def jsClick(a,button,k,user_input=nil) >> Also, the << jsclick($ie,"OK")#Error shown here >> call has one

[wtr-general] Re: ie.test_field(name,"man").value.to_s / Passing result to a parameter

2009-03-05 Thread Darryl (gem dandy) Brown
.test_field(name,"dayOfBirth").name.to_s Change "value" to "name" Regards, Darryl(gem dandy)Brown On Mar 5, 6:09 pm, maximore wrote: >  Hi > >  Assume we have  result define ; > >    is it possible to pass a value from ie.test_field > (name,"

[wtr-general] Re: Help......trouble with Watir::Waiter.wait_until

2009-02-20 Thread Darryl (gem dandy) Brown
> > > Hi Darryl, > > > I dont know wait_until. But > > > try this > > > until(button.Exists?) > >   ie.wait(5) > > end > > button.click > > > Let me know whether this meets ur requirement? > > > Thanks, > > Jam > &

[wtr-general] Re: Help......trouble with Watir::Waiter.wait_until

2009-02-19 Thread Darryl (gem dandy) Brown
me know whether this meets ur requirement? > > Thanks, > Jam > > On Feb 18, 6:03 am, "Darryl (gem dandy) Brown" > br...@roadrunner.com> wrote: > > Hello all, > > > Help...I'm having trouble with "Watir::Waiter.wait_until". My goal is &g

[wtr-general] Help......trouble with Watir::Waiter.wait_until

2009-02-17 Thread Darryl (gem dandy) Brown
Hello all, Help...I'm having trouble with "Watir::Waiter.wait_until". My goal is to wait until a button is present before clicking it. I'm trying replace the sleeps with wait_until. 1) This works: sleep 5 $ie.frame(:index, 3).frame(:index, 3).frame(:index, 1).button(:id, 'editButton').click

[wtr-general] Re: need help in popup

2009-02-16 Thread Darryl (gem dandy) Brown
Hello Venkat, Please see this thread - Gem Recall Notice: win32-api http://groups.google.com/group/watir-general/browse_thread/thread/e18b8fa2c0e7b1bd/7cbbd05ad71c5a89?hl=en&lnk=gst&q=bad+gem#7cbbd05ad71c5a89 A bad gem was introduced momentarily. Regards, Darryl(gem dandy)Brown O

[wtr-general] Watir::Waiter.wait_until not working with nested frames

2009-02-14 Thread Darryl (gem dandy) Brown
id" and the "wait_until" times out at 60.x seconds as expected. Does anyone have any ideas on this? Thanks, Darryl (gem dandy) Brown --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir Gener