Re: [Wtr-general] how to capture text from popup window

2007-04-25 Thread SHALINI GUPTA
hi, i have tried to write this as def text(wait_seconds = 1) # sleep 0.3 autoit = WIN32OLE.new(AutoItX3.Control) autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds) if wait_seconds s = autoit.WinGetText(Microsoft Internet Explorer)

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Željko Filipin
Hi Joe, Please post html of that object (and a few lines before and after) so we could take a look. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Does watir support file download?

2007-04-25 Thread jhe
Dear all, Is there a way to download file and save it to hard disk? Thanks in advance. Jason ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to incorporate my Watir script into Nunit

2007-04-25 Thread Eoin
Bret, I've looked at that link allright Bret but haven't got it working yet. The reason I'm trying to integrate Watir with Nunit is that my project team use Nunit to run unit tests for the data acccess layer of our .NET project. Therefore it was decided it was best to try and run our web app

[Wtr-general] Button identification

2007-04-25 Thread Tunde Jinadu
Hi, Apart from id: Value: Name: How else can a button be recognised, I'm having problems with a button being recognised, if i run the script in isolation, the button in question is selected (as well as if I do the flash method from a console session) but if if I call the script using Load

Re: [Wtr-general] Button identification

2007-04-25 Thread Željko Filipin
Hi Tunde, In watir 1.5 I think you can use any attribute of a tag (like class), but I am not sure about that. ie.button(:class, my_class).click you can also use index ie.button(:index, 1).click or html ie.button(:html, /fancy_attribute='something'/).click or xpath ie.button(:xpath ,

Re: [Wtr-general] Button identification

2007-04-25 Thread Tunde Jinadu
Here you go input type=submit name=ctl00$xx$bt_next value=Next onclick=if (typeof(Page_ClientValidate) == 'function') { if (Page_ClientValidate() == false) { return false; }} this.value = 'Next';this.disabled = true;__doPostBack('ctl00$xxx$bt_next',''); id=ctl00__bt_next

Re: [Wtr-general] how to capture text from popup window

2007-04-25 Thread Prema Arya
Hi Shalini, Just try this code (modified your code a little) def text(wait_seconds = 1) # sleep 0.3 autoit = WIN32OLE.new(AutoItX3.Control) autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds) if wait_seconds s = autoit.WinGetText(Microsoft

Re: [Wtr-general] how to capture text from popup window

2007-04-25 Thread Prema Arya
Hi Shalini, Just try this code (modified your code a little) def text(wait_seconds = 1) # sleep 0.3 autoit = WIN32OLE.new(AutoItX3.Control) autoit.WinWait(Microsoft Internet Explorer, nil, wait_seconds) if wait_seconds s = autoit.WinGetText(Microsoft

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread joe fu
i've tried to do ie.div(:id, calendarStripDateLabelDock).fire_event(onmouseover)but doesn't work for me. you can also try it with the steps below: goto mail.yahoo.com enter user: f323_cal1 password: testing mouse over the Today's date on the Calendar Strip at the bottom. div

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Charley Baker
Hmm, good question, I don't seem to be able to access it either. Thanks for the public example, I'll look at it some more and see if I can't trigger it. -c On 4/25/07, joe fu [EMAIL PROTECTED] wrote: i've tried to do ie.div(:id, calendarStripDateLabelDock).fire_event(onmouseover)but

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Paul Rogers
looking at the html its done using css, not a fire_event Im no css expert, but I think this will be really difficult for us to do in watir - Original Message - From: Charley Baker To: wtr-general@rubyforge.org Sent: Wednesday, April 25, 2007 2:28 PM Subject: Re: [Wtr-general]

Re: [Wtr-general] OT: New version of RDT plugin for Eclipse

2007-04-25 Thread Bret Pettichord
Lillis, Dara wrote: one thing I've noticed that's slightly weird is that when I use click_no_wait from eclipse using the new rdt (eclipse 3.2, with rdt 0.9 RC1), what looks like a dos window pops up for a fraction of a second. the method still works and the popup causes me no problems,

[Wtr-general] canoo2watir

2007-04-25 Thread Paul Rogers
This is something Ive been thinking about for a while. Canoo ( http://webtest.canoo.com/ ) is a layer above htmlUnit that takes an xml file and runs it against a web site, clicking buttons, doing assertions etc. Ive written some code that takes this xml format and converts it to a watir

Re: [Wtr-general] canoo2watir

2007-04-25 Thread Charley Baker
Could be interesting, I'd looked at webtest when evaluating tools a while back. And as Elizabeth Hendrickson often says...'Show me the code'. It's always helpful and demonstrates the point pretty well and if people want to learn or add on then it gives them a good base. Perhaps it's one other

Re: [Wtr-general] canoo2watir

2007-04-25 Thread Paul Rogers
my thinking was that people who have canoo tests can now ( ok soon ) run those same tests on a real browser. I also thought there was a recorder for canoo, that records from a proxy, but I seem to be mistaken. I'll get the code a bit better then do a proper announcement Paul - Original

[Wtr-general] Fwd: + Hackety Hack +

2007-04-25 Thread Bret Pettichord
Here is what looks like a very useful tool for learning Ruby. This is from the author of Why's Poignant Guide to Ruby. http://hacketyhack.net/ http://code.whytheluckystiff.net/hacketyhack/wiki/GetHacketyHack Bret -- Forwarded message -- From: why the lucky stiff [EMAIL

Re: [Wtr-general] Fwd: + Hackety Hack +

2007-04-25 Thread Charley Baker
Why's Poignant Guide is excellent. It takes learning to program to a new and otherwise other worldly angle. I've been recommending it, you'll either love it or hate it. It'd be nice to work on his basic conceptual view and present a basic programming using Ruby class, wearing bunny suits of

Re: [Wtr-general] Fwd: + Hackety Hack +

2007-04-25 Thread Chris McMahon
t'd be nice to work on his basic conceptual view and present a basic programming using Ruby class, wearing bunny suits of course. With ukuleles. Propose it for Agile2008. I am *so* there. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] how to capture text from popup window

2007-04-25 Thread SHALINI GUPTA
hi Prema, Sorry it not working.. It is printing 1 in text file. please help!! Regards Shalini Gupta On 4/25/07, Prema Arya [EMAIL PROTECTED] wrote: Hi Shalini, Just try this code (modified your code a little) def text(wait_seconds = 1) # sleep 0.3 autoit =

[Wtr-general] how to capture text from popup window

2007-04-25 Thread SHALINI GUPTA
Hi, my code is as... requires require 'watir' #require 'autoit' require 'test/unit' require 'test/unit/ui/console/testrunner' require 'test/unit/assertions' #require 'watir/setFileDialog' #require 'popups_test' #require 'enabled_popup' #logger requires require 'example_logger1' require