[wtr-general] Re: do not know how to give input to a text box, which does not have a standard class or property in its HTML

2008-12-11 Thread Vijay
Wesley, Thank you so much for your reply. Your code worked like a gem and solved the problem. Thanks, Vijay. On Dec 11, 11:50 am, wesley chen [EMAIL PROTECTED] wrote: Try the comment below: ie.frame(:id,//).document.body.focus ie.send_keys(hello) Thanks. Wesley Chen. On Thu, Dec 11,

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Chuck vdL
The set option is a nice way to be able to run the very same script against both browsers without having to edit the script itself. e.g. run in one system set for IE, and it uses IE, run it on another system set for firefox, and it uses firefox.. but speaking of that, if both are used, which

[wtr-general] Re: do not know how to give input to a text box, which does not have a standard class or property in its HTML

2008-12-11 Thread wesley chen
:), Welcome. Thanks. Wesley Chen. On Thu, Dec 11, 2008 at 5:04 PM, Vijay [EMAIL PROTECTED] wrote: Wesley, Thank you so much for your reply. Your code worked like a gem and solved the problem. Thanks, Vijay. On Dec 11, 11:50 am, wesley chen [EMAIL PROTECTED] wrote: Try the comment

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

2008-12-11 Thread larryni...@gmail.com
Okay, so: autoit. Here's some code that I got off another site that doesn't work to dismiss popups: require 'watir' require 'watir/dialog' def check_for_popups autoit = WIN32OLE.new('AutoItX3.Control') # # Do forever - assumes popups could occur anywhere/anytime in your

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord
I claim that it works the way you'd expect. To test this claim, tell me how you'd expect it to work. Bret Chuck vdL wrote: The set option is a nice way to be able to run the very same script against both browsers without having to edit the script itself. e.g. run in one system set for

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread anna barbara ostrowska
HI there! Default browser fof Windows is IE therefore you do not have define this browser if you are on windows. If you want to run your script on FF simply in commant prompt set watir_browser=firefox 2008/12/11 Margam nk.mar...@gmail.com HI All, I am trying to write one script that will work

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread John Fitisoff
I think the problem is that you are requiring watir rather than watir/browser. Something like this should work: require 'rubygems' require 'watir/browser' set watir_browser=ie browser = Watir::Browser.new browser.goto(http://www.hotmail.com;) --- On Wed, 12/10/08, Margam nk.mar...@gmail.com

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

2008-12-11 Thread Michael Hwee
Ok, I have gone through your codes and actually wrote the script similar to yours. I don't understand when you said 'click_no_wait' is not working. To me, it is working just fine. Here is my codes and dismiss the js popup. require 'watir/ie' require 'watir/contrib/enabled_popup' def

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

2008-12-11 Thread Michael Hwee
That is disappointing. I believe that is something like OS and/or configuration issues, rather than watir itself. Michael - Original Message From: larryni...@gmail.com larryni...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, December 11, 2008 12:00:00

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Margam
Hi John, So I tried using require 'watir/browser' in my script and set watir_browser=ie from command prompt and everything is OK. IE is opened and the scripts runs fine. But when I type set watir_browser=firefox from command prompt and run the script, IE is still used. Firefox is not launched.

[wtr-general] Watir Script Integration with javaCruiseControl - Testing Java App.

2008-12-11 Thread watirpuppy
Greetings, I searched the group posts and found one about CruiseControl Integration, but it's from 11/27/2007 - just over a year old n' I can't reply to it.. So resurrecting the issue in hopes to get more contemporary info. and provide more concrete examples on this journey through the

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread John Fitisoff
Sorry, missed that part. I haven't tried it the way that the example describes. The following works for me: require 'watir/browser' Watir::Browser.default = 'firefox' b = Watir::Browser.new I basically have a test runner that takes a command line option for the browser type. When it starts

[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord
Margam, I cannot reproduce your problem as described. C:\set watir_browser=firefox C:\irb irb(main):001:0 require 'watir' = true irb(main):002:0 b = Watir::Browser.new = #FireWatir::Firefox:0x3d32c48 @window_url=about:blank, @t=#Thread:0x3d0c7 8c sleep,

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

2008-12-11 Thread pramod D
Hi Michael, Initially i also faced same problem when i use Click_no_wait control was going but never clicked it, To come around this initially i opened the IE (IE7)with blank page and then, i will attach the browser at the start of the script and continue to execute my script as usual and worked