Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
hi, Thanks!! im getting this problem with HREF 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using HREF and http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3

Re: [Wtr-general] FireWatir doesn't ignore if it doesn't exists but

2007-05-23 Thread Prema Arya
Hi Eoin, Are you still facing the problem? try using the latest code from svn. if it's still there ,II will look into it. Regards, Prema On 5/11/07, Bret Pettichord [EMAIL PROTECTED] wrote: I was confused about your problem. It now looks like this is a FireWatir bug. Bret

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Prema Arya
can you send the code snippet? On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: hi, Thanks!! im getting this problem with HREF 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using HREF and

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
hi, this is my code snipset def system_link $logger.log(## CAST_HOMEPAGE_05) $logger.log() $logger.log ## System link #\n $logger.log(Description-In Health Factor with lowest grade / System subsection, click

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
hi, now im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link ( http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3)

Re: [Wtr-general] How click on save button in file download

2007-05-23 Thread Grzesiek
Hi, I had also problems with it. I had to download autoitX3 tool. Because there is a tool which identifies the instances of buttons and without that actions did not work for me. autoit.WinWaitActive(Save As)

Re: [Wtr-general] Cannot click Cancel button in download file window

2007-05-23 Thread Grzesiek
Hi Kui, I had also problems with that. I have installed the script AutoIT because it identifies instances of buttons. After that my script is working with popups. This is how it looks like autoit = WIN32OLE.new('AutoItX3.Control') autoit.WinWaitActive(File) #File Download window

Re: [Wtr-general] Watir + Autoit + Save As

2007-05-23 Thread Grzesiek
Hi, I had to use the AutoIT tool for identifing the INSTANCE of buttons. Then it worked for me: autoit = WIN32OLE.new('AutoItX3.Control') autoit.WinWaitActive(File) #File Download popup autoit.ControlClick(File,,[CLASS:Button;TEXT:Save;INSTANCE:2]) #clicking Save button

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Željko Filipin
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link Which Watir version are you using? It should work with 1.5.1.1166. You can get it here. http://wiki.openqa.org/display/WTR/Development+Builds

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
im using watir 1.4.1 but also installed this watir-1.5.1.1127.gem On 5/23/07, Željko Filipin [EMAIL PROTECTED] wrote: On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown way of finding a link Which Watir version are

Re: [Wtr-general] Why it is always failed?

2007-05-23 Thread Željko Filipin
On 5/23/07, Kui Zhang [EMAIL PROTECTED] wrote: Using the following assert statement, I always get failed result. This works for me (no exception raised). irb(main):007:0 assert(ie.contains_text(Welcome manager!)) = nil Maybe you are not identifying frame correctly. It would help if you

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Željko Filipin
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: im using watir 1.4.1 but also installed this watir-1.5.1.1127.gem Paste this into command prompt. ruby -e 'require watir; puts Watir::IE::VERSION' What do you get? In any case, you should uninstall both versions of watir and install

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
i Have installed 1.5.1166 and problem is solved.. but when i change that link name...its not working.. is href also variable?? On 5/23/07, Željko Filipin [EMAIL PROTECTED] wrote: On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: im using watir 1.4.1 but also installed this

[Wtr-general] AutoIt -- Unable to actually click IE7 buttons

2007-05-23 Thread Erik Oliver
So, I'm running into a weird problem with AutoIt and IE7 file download buttons I want to click Save, but am having no love. I've tried a number of different approaches (see below) with no luck. The uncommented version is what has come closest to working in that it actually manages to switch

[Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-23 Thread SHALINI GUPTA
Hi, In my project i want to click a link that is variable.i.e user dependent.Butalways it comes after an image... so is there any way to click a link just next to an image. please help.Its very urgent Regards Shalini Gupta ___ Wtr-general mailing list

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Željko Filipin
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: but when i change that link name...its not working.. is href also variable? I would like to help, but I have no idea what are you talking about. :) Please be explicit? Like this: I have this html (snippet). I want to do this. I have tried

Re: [Wtr-general] AutoIt -- Unable to actually click IE7 buttons

2007-05-23 Thread Željko Filipin
I do not mean to be rude, but don't you think you will get a faster and better reply if you posted you question at AutoIt forum? I would like to help, but I have never used AutoIt (I know Watir uses it somewhere, but it is hidden from me). Zeljko ___

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
my watir code is... def system_link $logger.log(## CAST_HOMEPAGE_05) $logger.log() $logger.log ## System link #\n $logger.log(Description-In Health Factor with lowest grade / System subsection, click System

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Željko Filipin
This does not work? ie.link(:href, http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 ).click What happens? Do you get any error message? Zeljko ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Prema Arya
in the html code you have given no link is having http://172.16.59.105http://172.16.59.105/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3 in the href every link's href start with localhost:8080 are you sure you are using the same HTML?

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
hi, after using regular expression im getting this error 1) Error: test_ADGDashboard_Homepage(TC_CAST_ADGDashboard_Homepage): Watir::Exception::UnknownObjectException: Unable to locate object, using href and (?-mix:treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS) On 5/23/07, Prema

Re: [Wtr-general] How to click variable link

2007-05-23 Thread SHALINI GUPTA
my watir code is:- def system_link $logger.log(## CAST_HOMEPAGE_05) $logger.log() $logger.log ## System link #\n $logger.log(Description-In Health Factor with lowest grade / System subsection, click System

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Prema Arya
Shalini, The code your have written works fine here at my end using the html you have sent .. provided the link having text ,/treeobject=46object=46frame=FRAME_PORTAL_TOP_LEVEL_DETAILS is there in the page. However, when I change the text so someting that is not there in the page it is throwing

Re: [Wtr-general] How to click variable link

2007-05-23 Thread Prema Arya
One more thing '' has different meaning in regular expression, so try escaping it out like $ie.link(:href,/treeobject=3305\object=3305\frame=FRAME_PORTAL_TOP_LEVEL_DETAILS/).click This could be the mistake... Regards, Prema On 5/23/07, Prema Arya [EMAIL PROTECTED] wrote: Shalini, The code

[Wtr-general] How to identify Textboxes in Frames using xpath in Watir.

2007-05-23 Thread Ameya
I want to select a text box , which is inside a frame. Apparently there are three frames, and the text box which i am interested in is in a sub frame. I tried using $browser.frame(framename).text_field(:xpath,Expression).set(the value) I also read a document online that says that xpath doesnt

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Željko Filipin
On 5/23/07, Jungwhan Kim [EMAIL PROTECTED] wrote: any resource that I can look up? IE6 and IE7 Running on a Single Machine http://blogs.msdn.com/ie/archive/2006/11/30/ie6-and-ie7-running-on-a-single-machine.aspx Zeljko ___ Wtr-general mailing list

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Jungwhan Kim
Thanks for the info. Can I automate the testing with watir? I want to automate the testing process on IE 6 and IE7 sequencially. Is there any configuration file or watir script support this feature? Date: Wed, 23 May 2007 16:49:07 +0200From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re:

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Ruben
Multiple IE http://tredosoft.com/Multiple_IE http://tredosoft.com/files/multi-ie/multiple-ie-setup.exe ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Jungwhan Kim
Thanks for the info. But let's say that the default is IE 7. But how should I start the instance of IE6 in Watir? Watir starts an IE instance like this, ie = IE.new Is there any way to tell Watir to open a specific version of IE after multiple versions of IE is installed in a single

Re: [Wtr-general] Why it is always failed?

2007-05-23 Thread Kui Zhang
Hi Zeljko, Thank you the reply! I found one of your reply for the assertion in another email and that helped with my problem. Here is the code I had before and it always failed. begin assert(ie.frame(:name, top_frame).contains_text(ClaimCenter)) puts (Test Passed. Found folder 'ClaimCenter')

Re: [Wtr-general] Why it is always failed?

2007-05-23 Thread Paul Rogers
you need to 'load up' the assertions libraries the following shows you how C:\cygwinirb irb(main):001:0 require 'test/unit/assertions' = true irb(main):002:0 include Test::Unit::Assertions = Object irb(main):003:0 assert( true ) = nil irb(main):004:0 assert(false)

Re: [Wtr-general] Why it is always failed?

2007-05-23 Thread Kui Zhang
Got it. Thanks Zeljko! Kui ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How click on save button in file download

2007-05-23 Thread atul srivastava
Hi, is there somthing specail to do for executed this coad..? i have install ruby watir 1.4 on my system...? but this coad does not execut. pl help.! On 23/05/07, Grzesiek [EMAIL PROTECTED] wrote: Hi, I had also problems with it. I had to download

Re: [Wtr-general] Cannot click Cancel button in download file window

2007-05-23 Thread Kui Zhang
Hi Sfistak, I installed AutoIT. But I could not find the Instance for buttons. What did you use to get the instance of the button? Do you use Window Info tool? Thanks! Kui ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] global variable is not seen in test_ method

2007-05-23 Thread Russ DeWolfe
When I attempt to use the $ie global variable in a test _ method: class TC_Policies Test::Unit::TestCase require 'rubygems' gem 'watir' require 'watir' require 'utilities' require 'test/unit/testcase' require 'win32ole' require 'unittests/setup' #setup to run suite $ie =

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-23 Thread Ruben
Thanks Bret for letting me know. I pretty much gave up on figuring this out plus I do not think it is necessary any longer for us. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Michael Sofaer
Hello, all. I recently started using WATIR to automate load testing for my company's application, and I'm running into some trouble when I try to run more than four client windows at the same time. Each window needs its own ie process, since it needs its own session variables, so I got the

Re: [Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Chris McMahon
Maybe you're running out of memory? Take a look at taskmanager, or see if you can run more browsers on a beefier machine. I know I've personally run about 80-90 browsers simultaneously on a single desktop some time ago, but they weren't holding any large amounts of test data. Just BTW, you'll

Re: [Wtr-general] Accessing a web page when a server request for username/password appears?

2007-05-23 Thread Kevin Scott
I was not able to get this to work via Watir. I created a very small Autoit file which ran before the script. I used a batch file to execute both files. The Auotit code is below (just in case, someone else runs into the issue): Run(C:\Program Files\Internet Explorer\iexplore.exe)

[Wtr-general] Unable to a get a handle of secondary popup window

2007-05-23 Thread Kevin Scott
This is the scenario I am trying to use Watir for: 1. Click link within IE window 2. Standard Microsoft window opens - File Download (Window Title) - Click Save 3. Standard Microsoft window opens - Save As (Window Title) - Click Save 4. Standard Microsoft window opens - Download Complete (Window

Re: [Wtr-general] Accessing a web page when a server request for username/password appears?

2007-05-23 Thread Chris McMahon
We don't have a more elegant way of dealing with Basic Authentication yet. Someday Watir might borrow some of the code from Net::HTTP to do this, but it won't be happening any time soon. If you search the archives, you'll find some discussion of me trying to hack Basic Auth into Watir's goto()

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-23 Thread Bill Agee
Give the script from this page a try: http://rubyforge.org/snippet/detail.php?type=snippetid=26 For a quick demo just copy/paste the whole thing into a file, name it del_cache.rb, and run it. It always worked fine for me on XP SP2. ___ Wtr-general

Re: [Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Michael Sofaer
Thanks, Chris I don't think that it's the machine running out of memory, 8 windows is taking about 150 MB of the 270 MB I have available before I get the seg fault. Closing additional expensive processes doesn't improve the number of windows I can run. Could I be running into a memory limit

Re: [Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Chris McMahon
Maybe try using threads instead of ie-new-process? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Unable to a get a handle of secondary popup window

2007-05-23 Thread Charley Baker
There have been a lot of posts in the past day on the File Download dialog using AutoIt, take a look at the archives: http://www.mail-archive.com/wtr-general%40rubyforge.org/ As far as step 4, I'd suggest turning it off in IE. Internet Options Advanced Notify when downloads complete. I haven't

[Wtr-general] ie-new-process and rubyw.exe? bug?

2007-05-23 Thread Norm
Using ruby 1.8.5 and watir 1.5.1.1164. When I use the following code the script stops after opening the browser and doesn't set the text field and move on with the script, can't figure out why!: === require 'watir' require

Re: [Wtr-general] Seg-faults with 4 ie windows (hello)

2007-05-23 Thread Bret Pettichord
Chris McMahon wrote: Maybe try using threads instead of ie-new-process? Not really a good idea. If you want separate sessions you must use IE.new_process. Indeed, in trunk, i have changed the default IE.new method to actually use the IE.new_process implementation because it behaves more

Re: [Wtr-general] handling multiple IE

2007-05-23 Thread Bret Pettichord
Jungwhan Kim wrote: Thanks for the info. But let's say that the default is IE 7. But how should I start the instance of IE6 in Watir? Watir starts an IE instance like this, ie = IE.new Is there any way to tell Watir to open a specific version of IE after multiple versions of IE is

Re: [Wtr-general] ie-new-process and rubyw.exe? bug?

2007-05-23 Thread Bret Pettichord
Norm wrote: Using ruby 1.8.5 and watir 1.5.1.1164. When I use the following code the script stops after opening the browser and doesn't set the text field and move on with the script, can't figure out why!: === require 'watir' require

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-23 Thread Bret Pettichord
Bill Agee wrote: Give the script from this page a try: http://rubyforge.org/snippet/detail.php?type=snippetid=26 For a quick demo just copy/paste the whole thing into a file, name it del_cache.rb, and run it. It always worked fine for me on XP SP2. Thanks for the tip!

Re: [Wtr-general] CAN BE CLICK LINK ASSOCIATED WITH AN IMAGE

2007-05-23 Thread Bret Pettichord
SHALINI GUPTA wrote: In my project i want to click a link that is variable.i.e user dependent.But always it comes after an image... so is there any way to click a link just next to an image. please help.Its very urgent There is an little known feature in 1.5 that supports this: