Re: [Wtr-general] how to catpure image

2007-01-17 Thread gdx
Hi, the method save run corretly for me : test_site = 'http://site/' ie1 = IE.new ie1.goto(test_site) ie1.image(:src,'http://site/images/logo.gif').save("c:\\logo.gif") Here the 'save As' window is opened. I hope I help you - P

[Wtr-general] how to catpure image

2007-01-17 Thread Maloy kanti debnath
hi, I have a problem saving image or getting image from a web site can any one please help me i tried a) image(:alt,'name').save(path) b) image(:alt,'name').getImage( how, what ) which is in Watir::SupportsSubElements module or if i am wrong please give m

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

2007-01-17 Thread Angrez Singh
Hi Bach, FireWatir works on what's there on the browser. I tried you script here also. So on the browser image source is just "/Images/Global/placeitemsinbag.gif". Just try this. $FF.button(:src, '/Images/Global/placeitemsinbag.gif').click It should work. Regards, Angrez On 1/17/07, Bach Le

Re: [Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread Angrez Singh
Hi Paul, These errors are because either Firefox is opening new link in a new tab. or blocking up the pop up. Run the unit test alone and allow the pop ups. I think this should resolve the error. Regards, Angrez On 1/18/07, Paul Rogers <[EMAIL PROTECTED]> wrote: Great job with FireWatir! I

Re: [Wtr-general] Encrypt password

2007-01-17 Thread Chris McMahon
On 1/17/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote: hi, I need to encrypt it because i don't want to hardcode the password in the script so as to make it a bit secure from data theft .. this option is there in all the other tool such as Winrunner,QTP,TP .. OK. How do those other too

Re: [Wtr-general] Encrypt password

2007-01-17 Thread Maloy kanti debnath
hi, I need to encrypt it because i don't want to hardcode the password in the script so as to make it a bit secure from data theft .. this option is there in all the other tool such as Winrunner,QTP,TP .. maloy - Posted via Ji

Re: [Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread Paul Rogers
Great job with FireWatir! I get these 2 errors, using ruby 1.8.4 (2005-12-24) on FireFox 1.5.0.9 1) Error: test_simply_attach_to_new_window_using_title(TC_NewWindow): FireWatir::Exception::NoMatchingWindowFoundException: Unable to locate window, using title and Pass Page C:/ruby/lib/ruby

Re: [Wtr-general] Is there a way to make file_field.set faster?

2007-01-17 Thread Bret Pettichord
Željko Filipin wrote: > It works just fine with revision 1144. It takes only 2 seconds to set > file field. Much better than 10 seconds when using development gem > 1.5.1.1081. That 10 seconds are from my first report. I tried 1081 gem > today and measured 13 seconds to set file field (tree trie

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): FireWatir::Exception::UnknownObjectExcep

Re: [Wtr-general] Encrypt password

2007-01-17 Thread Chris McMahon
On 1/16/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote: Hi All, I have been working on watir for the past one week .I just wanted to know how do i encrypt password in watir,please let me know asap.thanks for ur help How do you want to encrypt it, and why must it be encrypted? _

Re: [Wtr-general] Two queries in Watir

2007-01-17 Thread gdx
hi, 1) require 'watir' # the watir controller include Watir test_site = 'http://www.rediff.com/' ie1 = IE.new ie1.goto(test_site) ie1.text_field(:name, "login").set("toto") ie1.text_field(:name, "passwd").set("tata") ie1.image(:src,'http://im.rediff.com/uim/news/SignUp-btn.gif').click --

Re: [Wtr-general] ignoring the SELECT option

2007-01-17 Thread Cain, Mark
Here is my $0.02. lbDocTypeID = [] lbDocTypeID = $ie.frame(:index, 4).select_list( :name, 'DocTypeID').getAllContents cnt = rand(lbDocTypeID.length) next if "#{lbDocTypeID}" == ("-- Select Doc Type --") $ie.frame(:index, 4).selectBox( :name, 'DocTypeID').select("#{lbDocTypeID[cnt]}") --

Re: [Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread John Lolis
great to hear! I'm going to give this a shot today. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6147&messageID=17246#17246 ___ Wtr-general mailing list Wtr-gen

[Wtr-general] FireWatir version 1.0.1 released

2007-01-17 Thread Angrez Singh
Hi, We have released FireWatir version 1.0.1 For new features and future enhancements please go through release notes at http://code.google.com/p/firewatir/wiki/ReleaseNotes . Main features of this release are: 1. Main concern was speed. It has been improved significantly and now it's

Re: [Wtr-general] Is there a way to make file_field.set faster?

2007-01-17 Thread Željko Filipin
On 1/17/07, Bret Pettichord <[EMAIL PROTECTED]> wrote: I also know that this was broken in 1.5 until recently, so you must have been referring to 1.4.1. Correct? No. I was referring to development gem 1.5.1.1081, the last gem that I could make FileField#set to work. I am curious whether the

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-17 Thread gdx
hi, use the chop method : "1L4TR6B9#".chop #=> "1L4TR6B9" i hope i help you - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6130&messageID=17236#17236 ___

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-17 Thread sarita
I got it: ReadTextField = ReadTextField.delete "#" - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6130&messageID=17237#17237 ___ Wtr-general mailing list Wtr-gener

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-17 Thread sarita
Plz mention the function for deleting that '#' character from the end of the string - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6130&messageID=17233#17233 ___

Re: [Wtr-general] ignoring the SELECT option

2007-01-17 Thread sarita
yes, it was of great help except some minor typing errors & also we can put variable.length in place of 10: > hi, > sorry for my english > > in a list from 0 to 10 > if SELECT = 0 you've just to write this > > variable = ie.select_list( > name,"ctl00$ContentPlaceHolder$ddlClientList").getAllC

Re: [Wtr-general] ignoring the SELECT option

2007-01-17 Thread gdx
hi, sorry for my english in a list from 0 to 10 if SELECT = 0 you've just to write this variable = ie.select_list( name,"ctl00$ContentPlaceHolder$ddlClientList").getAllContents varRand = variable[rand(variable.length )] varRand += 1 if varRand > 10 varRand = 10 end ie.select_list(:name, "ctl0