Re: [Wtr-general] Does Sending Keys work on windows 2003 server OS?

2007-07-09 Thread Bach Le
From what I've seen, send keys works just fine in Windows Server 2003. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] IE.new_process hangs my program

2007-06-27 Thread Bach Le
Shawn, I've seen this happen before on some machines that I have. I think this could be a result of the remote procedure call priority being set too low. I'm not sure what the fix is but the problem itself exists. ___ Wtr-general mailing list

[Wtr-general] Our contribution to Watir

2007-06-15 Thread Bach Le
in automated testing and we are trying to use that to develop a package that could be paired with Watir for performance testing. This contribution is only the beginning. We have more useful things that will be coming down the pipe and we look forward to contributing more in the future. Bach Le

Re: [Wtr-general] 'Require' Lots Of Files

2007-05-30 Thread Bach Le
What I do is if I have to require a certain set of files repeatedly, I just place it in another .rb file and require that .rb file which will in turn require all of the files you need. So I would define a file called requirements.rb and then inside that file place require 'x' require

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bach Le
I thought the two problems are related because in neither instance was watir able to find the window after it was created (I didn't look into the specifics). I did look into it some more after this post and I found out that it was Vista's security settings that caused watir to break. Turning

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-25 Thread Bach Le
So here is how I fixed my problem: 1. Goto the Control Panel 2. Click on User Accounts 3. Click on User Accounts again 4. Select the account you are using 5. Click Turn User Account Control on or off 6. Turn User Account Control off This allowed Shell.Application.Window to find the correct

[Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bach Le
I've installed watir 1165 and tried using IE.new_process on Windows Vista and in both tests and irb, IE.new_process fails. It fails after creating the window when it tries to get the process id from hwnd. I have a coworker who installed this on his Vista machine and it works fine. The

Re: [Wtr-general] Question about IE.new_process and Vista

2007-05-24 Thread Bach Le
Bret, the problem actually exists for IE.new as well. I create a new IE window with IE.new and it creates the window but when I call the goto method to navigate to any page, a new IE window shows up and the navigation is done in that window. I've updated the ticket to include this

Re: [Wtr-general] unknown property or method `readyState'

2007-04-18 Thread Bach Le
Hi Charley, I just installed 1165 today and I have noticed the same error that was mentioned in this thread. The error revolves around the following piece of code: documents_to_wait_for = [EMAIL PROTECTED] while doc = documents_to_wait_for.shift until doc.readyState ==

[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] 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] http_error_checker on IE7

2007-03-14 Thread Bach Le
Charley and Paul, I'm running the latest gem and trying to use the navigation checker with IE7, however, the code that was committed does not work. The get the following error: 1) Error: test_1(TestCase): WIN32OLERuntimeError: navigator OLE error code:80070005 in Unknown Access is

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Bach Le
I just set up apache on my local machine and hit the localhost for a document that doesn't exist. I played around with it some more after I posted that last message. I fired up IRB and issued the command that way and it worked. So i went back and ran my test and it works now. I don't know why

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Bach Le
Paul, here are the steps i used to produce the problem 1. IRB 2. create new IE window which should goto about:blank 3. issue command ie.document.invoke('parentWindow').navigator.appVersion 4. I do not get the error 5. call ie.goto('http://localhost/doesnotexist.html') and I get a HTTP 404 not

Re: [Wtr-general] http_error_checker on IE7

2007-03-14 Thread Bach Le
Paul, do you know if it's possible to read the response headers from the server for a given page with IE? I've been looking around and I can't find any information on it. I'd be happy to write the code if someone can point me in the right direction. -Bach

[Wtr-general] Problem automating Gmail

2007-03-13 Thread Bach Le
Hello all, I'm writing some tests to test gmail and I'm having a slight problem clicking on the menu items to the right in a gmail window. Below is the script I am using. The problem is that I want to click on the text that says Starred right beneath Inbox but no matter if I use span.click or

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-12 Thread Bach Le
Hi Paul, I actually came across a problem with the method I described above today. I was scripting a page for a customer and the problem with the cookies occured. I had no idea what was wrong until I remembered that you mentioned that the cookies were the source of your problems. So thanks,

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-08 Thread Bach Le
Swarma, Actually, I believe keeping the cookies from writing to disk is a better solution than the one Paul is suggesting (using code to delete it). In IE7 (don't know about 6 but I think it is possible). In IE7, do the following: 1. Tools - Internet Options 2. Click on the Privacy Tab 3.

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-08 Thread Bach Le
Thanks for the info Paul. We are currently also doing some tests with clearing cookies and cache. I'll be sure to test it out to make sure it works in that situation. - Posted via Jive Forums

[Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
I'm writing a test for a page that does not have a title. The IE window only has the url, however, IE.bring_to_front uses AutoIt's WinActivate function to bring the window to front but AutoIt can only bring a window to the front if a title is specified. Anyone know how I can do it? I thought

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
I found out that you can do ie.document.focus and that brings the window to the front but that seems like a hackish way of doing it. Anyone know a better solution? - Posted via Jive Forums

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
Thanks Bret, I guess I'll go with that then. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6572messageID=18739#18739 ___ Wtr-general mailing list

Re: [Wtr-general] bring_to_front for window without a title

2007-02-15 Thread Bach Le
Paul, I looked at the documentation for AutoIt but it seems like all of the functions rely on matching the titles in order to interact with the window. The only references that i saw for using HWND was the WinClose or something. -Bach

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-18 Thread Bach Le
Hi Angrez, Thanks for clarifying that. Although it does work on watir, do you have any idea why it doesn't work on FireWatir? Seems to be that would be nice to have both the relative path and the absolute path for the element src. If you'd like, i'd be happy to take a look at the code and

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-17 Thread Bach Le
Hi Angrez, I just installed the latest gem, 1.0.1. I ran the same test again the script errors at this line: $FF.button(:src, 'http://www.anntaylor.com/Images/Global/placeitemsinbag.gif').click I get the following error: 1) Error: test_1(TestCase):

Re: [Wtr-general] working with bitmap

2007-01-12 Thread Bach Le
try this im = Image.new('C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\SAI1.jpg') - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6089messageID=17113#17113

Re: [Wtr-general] Speed of Firewatir vs. Watir

2007-01-11 Thread Bach Le
Hi Angrez, I did not have any problems installing FireWatir. I followed the installation guide at http://code.google.com/p/firewatir/ and it worked like a charm. I tried to run a few scripts that I had successfully run with Watir and they seemed to break when it got to clicking buttons in

Re: [Wtr-general] working with bitmap

2007-01-11 Thread Bach Le
I think he means checking if one image is the same as another image pixel-by-pixel and if that is the case, rmagick should be able to do the trick although I have not tested it out myself. Message was edited by: beefandbachle

Re: [Wtr-general] Managing the Cookie Space with Watir

2007-01-08 Thread Bach Le
Since no one seems to know, I think I have found a solution and I want to share with everyone just in case someone is having this problem. In Internet Explorer 7, goto Internet Options-Privacy-Advanced. Block First and Third Party cookies, however, enable session cookies. These cookies will

[Wtr-general] Managing the Cookie Space with Watir

2007-01-05 Thread Bach Le
I haven't had much time recently to work with watir but I have come across a problem I have not been able to figure out. Here's an example of my problem: 1. I go to a web store 2. I place an item in the shopping cart 3. I finish the script and exit 4. When i run it again, the item may already be

Re: [Wtr-general] spiderwatir!

2006-11-08 Thread Bach Le
This is very interesting news. Opens a whole new arena for functionality testing by allowing us to test even more rich web pages like those using flash, which if I'm not mistaken, is not possible with watir and difficult if not impossible with other technologies. -Bach

Re: [Wtr-general] interacting with AJAX drag and drop

2006-08-08 Thread Bach Le
Max, check out this link http://zbarzone.blogspot.com/2006/05/drag-and-drop-with-watir.html -Bach Message was edited by: beefandbachle - Posted via Jive Forums

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Bach Le
Rand, ie.button(:src, 'https://www.entertainment.com/images/button_continue.gif').click should be enough to click the button, however, for consistency reasons there shouldn't be a reason why it works without the form specified when it is in fact a form element. As I noted before, it does

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Bach Le
Thanks Charley. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=3381messageID=9511#9511 ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-07 Thread Bach Le
I was running the latest stable release of Watir 1.4 but had the window attach error which was fixed with version 1.5 development build but after I installed 1.5, I can no longer specify a specific element within a form such as: ie.form(:id, form1).button(:src, http://www;).click Was

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-07 Thread Bach Le
Thanks for getting back to me so quickly. Here is an example of it working in 1.4.1 and not in the 1.5 development build. ie = IE.new ie.goto(www.entertainment.com) ie.link(:text, 'Buy the Book').click ie.link(:text, 'Chicago North