[Wtr-general] simple solution for basic authentication

2006-07-28 Thread Danny R. Faught
Howdy folks. I find myself on a project where I want to use a browser-based test tool to record client-side performance metrics. After playing with several such tools again, Watir again emerged as the tool that I was first able to get a working script with. But along the way, I noticed with some

Re: [Wtr-general] simple solution for basic authentication

2006-07-31 Thread Danny R. Faught
> I tried and failed, but I thought my problem was in the way IE handled the data. I'd love to be proven wrong: It works for me, hacking watir.rb with hardcoded credentials like so - def goto( url ) user = "username" pass = "password" auth

Re: [Wtr-general] RPC Server unavailable

2006-07-31 Thread Danny R. Faught
w> 1. Add time delays between the ie.close and ie.new or ie.start. This will give a chance for the ie.close to really close. > 2. Don't close IE -- just reuse the existing client between tests. > 3. Create an additional IE. As long as this lives, the IE server will > continue to live and you can c

Re: [Wtr-general] simple solution for basic authentication

2006-08-02 Thread Danny R. Faught
>> To productize it, I'd recommending adding a credentials method like >> Win32::IE::Mechanize uses. > >I don't understand the $realm argument in this API. Can you explain? Could >we drop it? The realm is described here - http://httpd.apache.org/docs/1.3/howto/auth.html. It corresponds to the Aut

Re: [Wtr-general] Wtr-general Digest, Vol 33, Issue 7

2006-08-03 Thread Danny R. Faught
>My working hypothesis is that Danny's server only has Basic Auth in >place for the first outer document presented to the user, while my >server has Basic Auth in place for every document on the server. After exploring what's going on, I think this is likely true. I believe that the server is usi

Re: [Wtr-general] simple solution for basic authentication

2006-08-03 Thread Danny R. Faught
>> Maybe doing the GUI automation isn't such a bad solution. But let's >> see if IE gives us this password setting mechanism before we give up. >> >How would we do this? I feel like i've already done this, but i'm not >quite sure if you have something specific in mind. You mean GUI automation? I

Re: [Wtr-general] simple solution for basic authentication

2006-08-04 Thread Danny R. Faught
. Reminds me of the Unix passwd utility, which requires a specialized tool to automate, since it doesn't work with simple input redirection. If only with IE it were as simple as running an "expect" script. :-) -- Danny R. Faught Tejas Software Consulting http://teja

[Wtr-general] using Watir for single-user performance testing

2006-09-13 Thread Danny R. Faught
e timings, which a Perl script then used to edit the OpenSTA SCL code. Is anyone else using Watir for performance testing? -- Danny R. Faught Tejas Software Consulting http://tejasconsulting.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.or

Re: [Wtr-general] Finding the size of IE

2006-11-26 Thread Danny R. Faught
e scope of Watir. See if you can find an API in Ruby for the underlying Windows calls that you need to query the memory usage of a process. Maybe the "Win32 Utils". -- Danny R. Faught Tejas Software Consulting http://tejasconsulting.com/ ___ Wt

[Wtr-general] how to tell when IE is *really* done

2006-11-27 Thread Danny R. Faught
I'm having trouble getting a script to tell me accurately when a page has finished rendering. I'm running Watir 1.4.1 with Ruby 1.8.5 on Windows XP Pro SP2. I'm clicking a link that opens a new browser window, then I attach to the window. The attach returns before the contents of the window are re

Re: [Wtr-general] how to tell when IE is *really* done

2006-11-28 Thread Danny R. Faught
>From: Bret Pettichord <[EMAIL PROTECTED]> >I this that this patch might fix this problem: > >http://jira.openqa.org/browse/WTR-107 > >I believe that a correct wait procedure needs to check every frame. Thanks for the pointer. I've upgraded to 1.5.1.1127 to pick up this change. It doesn't quite f

Re: [Wtr-general] [OT] Running scripts on machines without ruby

2006-11-28 Thread Danny R. Faught
> http://www.erikveen.dds.nl/rubyscript2exe/index.html > I hear good things about it. I just tried it, and was impressed that it worked when I ran the executible on the same system where I built it. That's something that I haven't been able to get the open source Perl compiler to do. But when I

Re: [Wtr-general] [OT] Running scripts on machines without ruby

2006-11-28 Thread Danny R. Faught
Okay, sorry, I jumped the gun on rubyscript2exe. I managed to get a full Ruby 1.8.5 install on my XP Embedded box, and I'm getting intermittent segmentation faults with that too. So rubyscript2exe is just faithfully producing the same bug that's in Ruby itself. Is anyone else using Ruby on Windows

Re: [Wtr-general] Set focus to original window

2006-12-04 Thread Danny R. Faught
On 12/4/2006, "Alan Jahns" <[EMAIL PROTECTED]> wrote: >Could it be that since after submitting the log in credentials the 2nd >window closes and the first window takes a few secs to reload? Yes, I think that's probably the problem - your code has a race condition. There is a wait function that you

Re: [Wtr-general] Set focus to original window

2006-12-04 Thread Danny R. Faught
On 12/4/2006, "Alan Jahns" <[EMAIL PROTECTED]> wrote: >Well thanks a lot, you led me to the fix. It does seem to be a timing >problem, I started googling to figure out how to do a loop as you suggested >and while doing that found the sleep command, so I tried something like: > >ie2.button(:value, "

Re: [Wtr-general] Checking whether images inside a table are enabled or disabled

2006-12-04 Thread Danny R. Faught
On 12/4/2006, "vijay" <[EMAIL PROTECTED]> wrote: >T...While entering into our application, all links, other than "Instructions" >and "Step 1. Details", should be disabled. ... I want to verify this with >Watir. I am at a loss about how to do that. I would recommend looping through ie.links (or

Re: [Wtr-general] "abnormal program termination" error message while playing back a script

2006-12-05 Thread Danny R. Faught
On 12/5/2006, "vijay" <[EMAIL PROTECTED]> wrote: >Thanks Charley for your info. Now I have installed Ruby 1.82 (from the >RubyForge site) after uninstalling Ruby 1.85. Thanks from me too. I'm now running Watir with Ruby 1.8.2 on XP Embedded, and showing how much slower this supposed "thin client