[Wtr-general] keyword framework

2007-03-22 Thread aidy lewis
Hi, Has anyone written a simple keyword framework with Watir and would like to share a sample of it? If I remember Phlip may have done something like this. aidy ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Unable to select the button from button-menu

2007-03-22 Thread Mathew Jacob
Hi, I am unable to select the button from the button-menu. Following is the scenario. Please help me to resolve this issue. Scenario: In Yahoo Mail, Inbox folder(Click on Inbox), there exists a buttonmenu dropdown “Mark”. It has two options “Mark as Read” and “Mark as Unread”.

[Wtr-general] clicking image (button?)

2007-03-22 Thread Parv
Hi, Please Help, as i'm trying to click on on image (button) that fires an onClick() event. Here's html: input type=image src=/images/prep/new/submit.jpg onClick=sub() I have tried the following, but none has worked so far: * $ie.image(:src,

Re: [Wtr-general] watir faqs

2007-03-22 Thread Lillis, Dara
That's not my understanding. I thought http://www.openqa.org/watir/ was now the main site for everything Watir-y. I see two things that have not been migrated from http://wtr.rubyforge.org/: the tutorial, and the sample test. If those were moved, it would make sense to me that the old sites be

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Oscar
Thanks a lot! that is helpful but I was hoping not to have to do a lot of hacking around to get it to work. I'm surprised there isn't a more streamlined or integrated solution, given the ubiquity of this type of login. For my case I guess I can use the browser's autologin feature but if the

Re: [Wtr-general] watir faqs

2007-03-22 Thread Charley Baker
The openqa site is the main site right now. We're keeping the RubyForge site up as well since that's often the first site that people hit when searching for Watir, and connects us to the ruby community to some extent. Otherwise, as you can see, openqa is more current and where most of the

Re: [Wtr-general] watir faqs

2007-03-22 Thread Lillis, Dara
if you're going to keep http://wtr.rubyforge.org/ site up, I'd suggest including a link to the openqa site somewhere prominent. for new users who end up at wtr.rubyforge.org, there is currently no indication that the openqa site exists, and the faq and wiki links are dead. my suggestion would

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Charley Baker
We use AutoIt to bypass proxy authentication dialogs, very similar to your Apache basic authentication dialog. Take a look at WindowHelper.rb in the installed watir files, there's a method called logon which should work for you, or at least give you a general idea. Additionally, there's

Re: [Wtr-general] clicking image (button?)

2007-03-22 Thread Charley Baker
Hi Parv, You should be able to click on it with something like this: $ie.button(:src, /\/images/prep/new/submit.jpg/).click * $ie.image(:src, 'http://myDomain.com/images /prep/new/submit.jpg').flash() This control is a button in Watir not an image, the full url isn't listed in the src

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Oscar
Thanks, I'm looking into it now. Another thing I thought of with the help of someone at my work was to send the http headers along with my request for the url. I fired up Ethereal to capture the packets and found out some information about the http get I'm doing when the username and password

[Wtr-general] IE.new_process question

2007-03-22 Thread Bach Le
I know that IE.new_process uses the CreateProcess method in kernel32.dll to create a new IE process. This same method allows the user to change the environment variables for this specific instance of IE (by setting parameter 7 in the call to CreateProcess). Does anyone know which environment

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Charley Baker
Well, if you want to go down that roadyou could investigate using Navigate2 on the internal ie ole_object. ie = IE.new ie.ie.Navigate2('http://www.google.com',0,'','') Navigate2 takes 4 possible parameters: url, a constant flag for options, postdata, and headers. The postdata and headers

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Chris McMahon
On 3/22/07, Oscar [EMAIL PROTECTED] wrote: Thanks, I'm looking into it now. Another thing I thought of with the help of someone at my work was to send the http headers along with my request for the url. I fired up Ethereal to capture the packets and found out some information about the http

Re: [Wtr-general] How to access browser authentication pop-up

2007-03-22 Thread Chris McMahon
On 3/22/07, Charley Baker [EMAIL PROTECTED] wrote: Well, if you want to go down that roadyou could investigate using Navigate2 on the internal ie ole_object. ie = IE.new ie.ie.Navigate2('http://www.google.com',0,'','' ) Aha. I might get around to trying this today, if I can find a site

Re: [Wtr-general] IE.new_process question

2007-03-22 Thread Bach Le
Nevermind. When creating IE through the CreateProcess method, IE will need to read the SystemRoot environment variable. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Control windows dialog box

2007-03-22 Thread sathees
h = $ie2.enabled_popup() if (h) puts 'handle exists!' w = WinClicker.new w.clickWindowsButton_hwnd(h, Cancel) puts 'pop up canceled' end I found out that this would cancel the save image modal dialog which hangs

Re: [Wtr-general] Save Image Hangs?

2007-03-22 Thread sathees
see Control Windows Dialog Box thread ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Control windows dialog box

2007-03-22 Thread sathees
Using Ruby 1.8.6 Watir 1.5.1.1127 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-22 Thread Angrez Singh
Hi Mathew, Just looked at the Yahoo mail app (not the beta one) and had a look at the HTML. The options that you are trying to select like Mark as Read, Mark as Unread are in li tags. So you need to access them using xpath and then fire click event. Following code works for me for marking first