[wtr-general] Application not loaded

2009-01-12 Thread Prince3105
Hi Experts, I use below code to log the application, some time application hangs to load, that time test also gets hang and lets to fail. @ie1 = Watir::IE.new @ie1.goto $url @ie1.maximize @ie1.text_field(:name,txtUserName).set $userid @ie1.text_field(:name,txtPassword).set

[wtr-general] Re: Application not loaded

2009-01-12 Thread Bret Pettichord
It sounds like you may have encounted a bug in goto that occurred with an old version of Watir. What version are you using? Prince3105 wrote: Hi Experts, I use below code to log the application, some time application hangs to load, that time test also gets hang and lets to fail. @ie1

[wtr-general] Re: element_by_xpath return value

2009-01-12 Thread Bret Pettichord
Richard Lawrence wrote: Using FireWatir's element_by_xpath on my Mac, I get the expected type for the element. For example, on the Google home page: irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class submit = FireWatir::Button But with Watir (on Windows, of course), I always

[wtr-general] Re: watir click_no_wait hangs my code

2009-01-12 Thread Michael Hwee
I don't think that is true. click_no_wait() does not wait for the popup. Need more info on your issue. From: wesley chen cjq@gmail.com To: watir-general@googlegroups.com Sent: Monday, January 12, 2009 12:12:14 AM Subject: [wtr-general] Re: watir

[wtr-general] Re: Full Screen [F11] FireFox

2009-01-12 Thread al3kc
Try to send F11 by AutoIt --~--~-~--~~~---~--~~ 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:

[wtr-general] How to Verify Name in File download popup

2009-01-12 Thread zeng0...@gmail.com
I have a File download popup window looks the same as in http://wiki.openqa.org/display/WTR/File+Downloads I wonder if there is a way to check the Name and Type text on this window. Any suggestions are appreciated! Jun --~--~-~--~~~---~--~~ You received this

[wtr-general] Re: How to Verify Name in File download popup

2009-01-12 Thread Bill Agee
AutoIt may be able to do what you want. Check out the WinGetTitle and WinGetText functions: http://www.autoitscript.com/autoit3/docs/functions/WinGetTitle.htm http://www.autoitscript.com/autoit3/docs/functions/WinGetText.htm There should be some code examples in the wtr-general archives

[wtr-general] Re: Best Way for Checking Name Fields?

2009-01-12 Thread gem dandy
Rob, Give the below script a try. It puts 'whatever ' (with trailing space) into a text box in this thread and then checks to see if it contains 'whatever' (no trailing space). *** =begin

[wtr-general] Re: How to deal with two security information pop-up with Watir script?

2009-01-12 Thread wesley chen
Excellent! When I follow your advise and change the setting, both the two security pop ups are avoided, :), Really appreciate to you. Thanks. Wesley Chen. On Tue, Jan 13, 2009 at 1:52 AM, Michael Hwee michael_h...@yahoo.comwrote: Wesley, Just set the configuration to get rid of it. Goto:

[wtr-general] Re: Please help - getting error 'Unable to locate element'

2009-01-12 Thread H2006
Actually adding 'require 'rubygems' , solved the above problem but then I am getting error, undefined method `frame' for nil:NilClass (NoMethodError) I also tried to run from irb and got the same error. $ie.frame(:index, 4).link(:text, 'My').flash $ie.frame(:index, 4).link(:text, 'My').click

[wtr-general] Re: element_by_xpath return value

2009-01-12 Thread Bret Pettichord
I'm sure there's a way for Watir to do this just like FireWatir. It just hasn't been done yet, as far as i am aware. Angrez is the author of both Watir's xpath support as well as FireWatir, so that is probably why xpath works better with FireWatir than WatirIE. Angrez, do you have anything to

[wtr-general] Re: Please help - getting error 'Unable to locate element'

2009-01-12 Thread Alex Collins
That means that your $ie variable is nil. Which in turn means that you haven't successfully started a browser. You should have a line like: $ie = Watir::Browser.new This line starts the browser and connects it to $ie variable for you to use. The open() method may be used instead, I believe.