[wtr-general] Re: how to handle javascript popups problem with firewatir

2008-12-18 Thread Wilson Xu
You can use autoITx lib to handle Javascript pop-up window in the Firefox. On Nov 29, 8:10 am, "Paul Rogers" wrote: > ;-) > > we did talk about it a little bit. Heres some suggestions: > > overwrite the javascript alert method, so it displays a 'modal' div in a > light box, like google calendars

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-18 Thread Wilson Xu
The first step: Use Send("{TAB}") event to focus on the radio what you want. The second step: Use Send("{DOWN}") or Send("{UP}") event to select radio, I think this way is not stable, but can resolve your issue. Wilson Xu On Dec 18, 2:09 am, Margam wrote: > Hi al3kc, > > THANK YOU very much. Yo

[wtr-general] Does Watir recognize toolbars/toolbar objects in Firefox and IE browsers?

2008-12-18 Thread Sriniv
All, I would like to automate my testing for a toolbar and am wondering if WATIR recognizes toolbar and its objects in IE and Firefox browsers. Looked at all the so called commercial test automation tools but none are up to the job. Any info in this regard will be appreciated... -Sriniv --~--

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread Wilson Xu
According to the HTML source code, there is not a hyper-link, so that's why you got the message error. Can you attach a HTML file, maybe I can help you. Wilson Xu On Dec 18, 5:26 am, maven999 wrote: > I use the following line to locate the cell: > > $ie.div(:id, 'dbGrid').div(:class, 'dojoxGrid-

[wtr-general] is watir able to identify DOM objects?

2008-12-18 Thread Shanthala
Hi, We have developed our application using gwt. Is there a mechanism to identify all the DOM objects of a page or some kind of mechanism to have a repository of DOM objects in watir? Thanks in advance, Shanthala. --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-18 Thread al3kc
I cannot set radio button. It's an issue for me too. I just have selected "Save file" by default in FF. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread al3kc
You can use ie.element_by_xpath("//t...@class = 'dojoxGrid-cell']").click --~--~-~--~~~---~--~~ 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 Bef

[wtr-general] Re: Does Watir recognize toolbars/toolbar objects in Firefox and IE browsers?

2008-12-18 Thread Wilson Xu
What's the kind of toolbar, can you give us a example? Wilson On Thu, Dec 18, 2008 at 6:35 AM, Sriniv wrote: > > All, > > I would like to automate my testing for a toolbar and am wondering if > WATIR recognizes toolbar and its objects in IE and Firefox browsers. > > Looked at all the so called co

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-18 Thread al3kc
on http://www.autoitscript.com/forum/index.php?showtopic=81915&hl=firefox+download+window I have found next code: ControlClick("Opening", "", "MozillaWindowClass1", "left", 1, 46, 158) sleep(1000) ControlClick("Opening", "", "MozillaWindowClass1", "left", 1, 241, 237) sleep(1000) All elements i

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread maven999
Hi Wilson, Unfortunately, the app is not publicly available so I cannot attach the html file. al3kc, I tried the xpath method you suggested but it didn't work either. I get the following error: 1) Error: test_Statistics(TC_UI): NoMethodError: undefined method `click' for nil:NilClass C:/r

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

2008-12-18 Thread Michael Hwee
First, go to your internet options and reset all your settings to default. On vista with IE7, check off the Protected Mode. Michael - Original Message From: HAHAHA To: Watir General Sent: Wednesday, December 17, 2008 12:49:43 PM Subject: [wtr-general] Re: button.Click_No_Wait only

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-18 Thread Margam
Hey guys, Thanks for the input. I will certainly try, as soon as I finish with my current project. Thanks. Margam On Dec 18, 3:56 am, al3kc wrote: > onhttp://www.autoitscript.com/forum/index.php?showtopic=81915&hl=firefo... > I have found next code: > > ControlClick("Opening", "", "MozillaWindo

[wtr-general] Re: How to click on a grid cell to sort?

2008-12-18 Thread maven999
Ok I had to go ahead and add support for th tag myself. I added the following code to my Watir script: module Watir class TH < NonControlElement TAG = 'TH' end module Container def TH(how, what) return TH.new(self, how, what) end end end I can now select the element via

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

2008-12-18 Thread HAHAHA
I have tried to set IE to default, but it not work. Now I am trying to reinstall ruby and watir. On Dec 18, 11:34 am, Michael Hwee wrote: > First, go to your internet options and reset all your settings to default. > > On vista with IE7, check off the Protected Mode. > > Michael > > > > - Or

[wtr-general] Is the FireWatir-Watir integration working for you?

2008-12-18 Thread Pete Dignan
I'm curious, now that 1.6.2 has been out for a little while. Is the integration of FireWatir and Watir working for you? Are you using it to test on both IE and Firefox? Are there issues that are preventing you from using it effectively? If 1.6.2 were a movie and you were a movie critic, how many

[wtr-general] Re: Is the FireWatir-Watir integration working for you?

2008-12-18 Thread Lisa Crispin
I just haven't had time to get it working. Actually I haven't even had time to get my whole suite of tests working again. They run individually, but fail in a suite - windows are not getting closed and the next test fails. The suite ran before fine although we had been having random failures we cou

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

2008-12-18 Thread Michael Hwee
Ok, please let us know the outcome. - Original Message From: HAHAHA To: Watir General Sent: Thursday, December 18, 2008 12:50:34 PM Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button, does not click I have tried to set IE to default, but it not work. Now I

[wtr-general] Re: Is the FireWatir-Watir integration working for you?

2008-12-18 Thread Wilson Xu
I have tested my existed suite on Firefox, found the returned content of firewatir method is difference from between firewatir and watir, please refer to the http://code.google.com/p/firewatir/issues/detail?id=80. This is the biggest issues. Wilson Xu On Dec 19, 6:17 am, "Lisa Crispin" wrote: >

[wtr-general] Re: How to handle file download popups in Firefox?

2008-12-18 Thread Wilson Xu
Another way, I think you can use MouseClick() API in AutoITx to select the radio box. Wilson Xu On Dec 19, 1:35 am, Margam wrote: > Hey guys, > Thanks for the input. I will certainly try, as soon as I finish with > my current project. Thanks. > > Margam > > On Dec 18, 3:56 am, al3kc wrote: > >

[wtr-general] Re: Extension for testing flash applications with Watir

2008-12-18 Thread Wilson Xu
Is there any validation methods that verify actual and expect result? For example, there is a flash calculator in the webpage, I want to verify one add one is equal two, can flash-watir can support these operations? Wilson On Dec 17, 7:10 pm, sai wrote: > Hi Guys, > > I have written an extensio

[wtr-general] Re: Extension for testing flash applications with Watir

2008-12-18 Thread sai
Doing validations is up to you. You can work with and get the result from the flash app using flash watir and then user assert for comparison if you use any xunit framework. If not you can use a simple if statement for comparison Please let me know if you need more info. Regards, Sai On Dec 19,

[wtr-general] Re: Turning Javascript on and off

2008-12-18 Thread Wilson Xu
Also you can use MouseClick "button" [, x, y [, clicks [, speed ]]] in the AutoITx to resolve your issue, but I think the Richard's method is more better. Wilson Xu On Dec 16, 7:13 am, Paul Denize wrote: > Just to update here is a version of my final routine > > Hope it helps someone else >

[wtr-general] Re: Extension for testing flash applications with Watir

2008-12-18 Thread Wilson Xu
Can you write the sample code to show me how do you verify the add method in the following website. http://www.terrence.com/flash/calculator.html Thank you very much. Wilson Xu On Dec 19, 12:27 pm, sai wrote: > Doing validations is up to you. You can work with and get the result > from the fla