[Wtr-general] How To Click On The Image Button...With This html Code?

2007-05-04 Thread san
Hi People.. Heres The Code: tr td height=15/td/tr tr align=left td align=left colspan=2 valign=bottom input border=0 alt=Search src=../images/search_top.gif name=CTL_SUBMIT type=image a href=FilingsSearch.aspimg border=0 alt=Clear

Re: [Wtr-general] How To Click On The Image Button...With This html Code?

2007-05-04 Thread Angrez Singh
Hi, The element you are trying to click is not an image element i.e. not of type image. But its input type=image which is different. So you should try using following code. ie.button(:src, /search_top/i).click If you use your code 'Watir' is correctly clicking the image which is having the

[Wtr-general] How To Add A Cookie Earned From Watir To Mechanize...

2007-05-04 Thread san
Hi People... I Need To Add A Cookie From A Site That I Accessed Through Watir To A WWW::Mechanize Agent... Is There Any Way To Do It, Or Will It Be Possible To Be Really Authenticated In The Site Then By Mechanize Agent.. e.g If I Say If I Login In Yahoo By Watir And Then Try To Access My

Re: [Wtr-general] How To Click On The Image Button...With This html

2007-05-04 Thread san
Hi Angrez, Thanks.. That Worked... Don't Know How Did I Missed That Out :P Thanks... :) ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] can you help why ODBC connection failure worked one time and not working no

2007-05-04 Thread Charley Baker
What's the warning message? On 5/4/07, Venkata [EMAIL PROTECTED] wrote: Thanks chareley, i keep getting warning message in the log end of te script execution. Thanks. ___ Wtr-general mailing list Wtr-general@rubyforge.org

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

2007-05-04 Thread Maisonnette
Thank's, Yes i already do that, and the control take the focus, but it don't want to click on it ... :-( Any suggestion ?? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] FireWatir doesn't ignore if it doesn't exists but Watir does

2007-05-04 Thread Eoin
Hi Folks, I have scripts that use authentication. So when I start my first test, it goes to a login page and once I click the login button, my test runs. Subsequent tests runs without going to the login page as I'm now authorished to run the rest of the scripts. So in my code if the login

Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-04 Thread Paul Rogers
Assuming your html uses regular type html input type - text name='foo' maxLength=3 and you only want to test that the text field only allows 3 chars, why not use ie.text_field(:index,1).maxLength I guess if the maximum length is imposed by a javascript method on the onKeyPress event, then

Re: [Wtr-general] Setting focus in a frame in IE7

2007-05-04 Thread Charley Baker
I just ran the same code with IE7 and it appeared to work fine. Just out of curiosity why use send_keys instead of setting the text field? ie.text_field(:index, 1).set('foo') -Charley On 5/4/07, Paul Rogers [EMAIL PROTECTED] wrote: Assuming your html uses regular type html input type - text

[Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
Hi guys, I apologize if this thread had been discussed before. I was looking for it, but I couldnt find it. here is what I'm trying to do. I define a bunch of classes and functions in a.rb file, and I'm going to write the main script which hopefully can interact/use all the functions and

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Željko Filipin
Hi, Put require 'extra' near the top of main.rb. For now keep them both (extra.rb and main.rb) located in the same folder. Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] FireWatir not finding buttons by id

2007-05-04 Thread Chris McMahon
Im going to guess that this is a bug in 1.5 Seems like this would be an opportunity to sync up FireWatir with Watir. I think Charley has been looking into some of that recently. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
thanks for the quick respond. that was easy, huh.. I just thought too much on that one. beginner...:( ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Željko Filipin
On 5/4/07, Alien Ruby [EMAIL PROTECTED] wrote: thanks for the quick respond. You are welcome. :) that was easy, huh.. It is Ruby, (almost) everything is easy here. I just thought too much on that one. beginner...:( It happens. That is why this mailing list exists. Zeljko --

Re: [Wtr-general] FireWatir not finding buttons by id

2007-05-04 Thread Charley Baker
It's a curious bug, just saw the same thing. A bug/feature, works more than it should. :) Chris is right we should definitely spend more time with Angrez, Prema and the Firewatir community. I'm getting slammed by requests for multiple browser tests and starting to abstract layers so that it's

[Wtr-general] Using an ie.table.each do |row| loop when the page in the ie window refreshes itself

2007-05-04 Thread Ian Webb
Here's the code snippet that's giving me problems: ie.table(:index,29).each do |row| if (row[1].text =~ /#{journals}/) != nil then #If there is a match for that regex row[5].link(:index,1).click # this makes the popup window appear cw = Watir::IE.attach(:title,'Popup Window') #

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Alien Ruby
How are you guys so helpful ? It just makes me want to keep coding all weekend. need lots of coffee then... have a great weekend, guys..!! ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Chris McMahon
On 5/4/07, Alien Ruby [EMAIL PROTECTED] wrote: How are you guys so helpful ? That's actually a really good question. The people who started Watir had all participated in other Open Source projects, some successful, some unsuccessful. The early Watir community insisted that everyone,

Re: [Wtr-general] Community involvement with Watir

2007-05-04 Thread Bret Pettichord
Charley Baker wrote: I'd like to send out another annoucement asking for people to contribute to the Watir user guide and volunteer. I've started poking around at the user guide today and made a few changes, notably to update view source with the ie developer toolbar. I'll make further

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

2007-05-04 Thread Bret Pettichord
Eoin wrote: However FireWatir doesn't ignore the login button and bombs out when it sees it. It would help if you showed us the error and the page. However, my guess is that the problem is with the behavior of contains_text. In Watir for IE 1.4 this did not include the title. In Watir for

[Wtr-general] The Plan for Watir

2007-05-04 Thread Bret Pettichord
I've been doing a lot of thinking and planning for what we need to do with Watir. I've also been fairly quiet. I now have a new job and have been preoccupied by the change in jobs lately: with wrapping up affairs at my old job at DataCert, with a job search, and then with starting at Dovetail,

Re: [Wtr-general] The Plan for Watir

2007-05-04 Thread Chris McMahon
Good information. You and Charley and maybe some others should put this in blogs so the wider world can find it. On 5/4/07, Bret Pettichord [EMAIL PROTECTED] wrote: I've been doing a lot of thinking and planning for what we need to do with Watir. I've also been fairly quiet. I now have a new