From dave at burt.id.au Mon May 1 04:10:11 2006 From: dave at burt.id.au (Dave Burt) Date: Mon, 01 May 2006 18:10:11 +1000 Subject: [Wtr-general] [OT] - Gem upgrade? In-Reply-To: <44544D98.9070909@qantom.com> References: <44544D98.9070909@qantom.com> Message-ID: <4455C263.2050500@burt.id.au> Raghu Venkataramana wrote: > How does one upgrade gems? when I do a gem install on the latest gem, I > find two versions of the same application installed: > > for example, > wet-web (0.5, 0.9) > > I am only left with an option to first uninstall the previous version of > GEM and then installing the new one. Is there a way to specify (while > installing the gem) that only the latest version needs to be kept and > the previous version can be removed? > > Any help is appreciated Use this command to remove all old versions of gems you have installed: gem cleanup However, as Bret said, there's no harm in leaving them there. One of RubyGems's features in fact is the ability to require a certain version of a gem library: require_gem "watir", "1.4" require_gem "watir", ">=1.4" Cheers, Dave From Sean.Gallagher at ticketmaster.com Mon May 1 09:30:48 2006 From: Sean.Gallagher at ticketmaster.com (Sean Gallagher) Date: Mon, 1 May 2006 06:30:48 -0700 Subject: [Wtr-general] The Watir Installer Message-ID: <71D28C8451BFD5119B2B00508BE26E640CDE86F0@pasmail3.office.tmcs> +1 > -----Original Message----- > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret > Pettichord > Sent: Saturday, April 29, 2006 1:44 PM > To: wtr-general at rubyforge.org > Subject: [Wtr-general] The Watir Installer > > This is a proposal for packaging Watir 1.5. > > Watir will be distributed as two files. > 1. watir-1.5.0.gem - A gem that can be downloaded and > installed locally or remotely installed over the internet (as always). > 2. watir-bonus.zip - A zip file containing the user guide, > the examples, and notes on where to find the unit tests and > API docs (which are already in the gem). > > The gem would be required on any machine running Watir tests. > The bonus zip would be recommend for any users learning Watir. > > Specifically, i am proposing that we stop distributing the > one-click installer. Why? > - The one-click installer installs the watir library and > other files in different locations than the gem. This can > lead to confusion. > - The gem is becoming the standard method of installing Ruby > libraries. > - The one-click installer could be updated to make it more > consistent with the gem, but no one has signed up to do this. > - It is simpler to just have one method of installing Watir. > > I've discussed this off line with several people, but feel > like this is something that requires official community review. > > Please vote on this proposal. > > Bret > > From raghu at qantom.com Mon May 1 10:31:29 2006 From: raghu at qantom.com (Raghu Venkataramana) Date: Mon, 01 May 2006 20:01:29 +0530 Subject: [Wtr-general] [OT] - Gem upgrade? In-Reply-To: <4455C263.2050500@burt.id.au> References: <44544D98.9070909@qantom.com> <4455C263.2050500@burt.id.au> Message-ID: <44561BC1.4090204@qantom.com> Dave Burt wrote: >Raghu Venkataramana wrote: > > >>How does one upgrade gems? when I do a gem install on the latest gem, I >>find two versions of the same application installed: >> >>for example, >>wet-web (0.5, 0.9) >> >>I am only left with an option to first uninstall the previous version of >>GEM and then installing the new one. Is there a way to specify (while >>installing the gem) that only the latest version needs to be kept and >>the previous version can be removed? >> >>Any help is appreciated >> >> > >Use this command to remove all old versions of gems you have installed: > >gem cleanup > >However, as Bret said, there's no harm in leaving them there. > Nope. With two versions(and as time goes by it could be more than two) of a gem library, the script sometimes pickups the API from the wrong gem and fails. >One of >RubyGems's features in fact is the ability to require a certain version >of a gem library: > >require_gem "watir", "1.4" > >require_gem "watir", ">=1.4" > > The trouble is that every script will have to be changed whenever the version is changed. As of now, I am first doing a gem uninstall -a and then do a gem install Raghu >Cheers, >Dave >_______________________________________________ >Wtr-general mailing list >Wtr-general at rubyforge.org >http://rubyforge.org/mailman/listinfo/wtr-general > > > -- Qantom Software Pvt. Ltd http://www.qantom.com Ph : 91-80-26655216 Xtn. 125 -- From dave at burt.id.au Mon May 1 10:45:31 2006 From: dave at burt.id.au (Dave Burt) Date: Tue, 02 May 2006 00:45:31 +1000 Subject: [Wtr-general] [OT] - Gem upgrade? In-Reply-To: <44561BC1.4090204@qantom.com> References: <44544D98.9070909@qantom.com> <4455C263.2050500@burt.id.au> <44561BC1.4090204@qantom.com> Message-ID: <44561F0B.5090500@burt.id.au> Raghu Venkataramana wrote: > Dave Burt wrote: >> Use this command to remove all old versions of gems you have installed: >> >> gem cleanup >> >> However, as Bret said, there's no harm in leaving them there. >> > Nope. With two versions(and as time goes by it could be more than two) > of a gem library, the > script sometimes pickups the API from the wrong gem and fails. A normal require should get the most recent version. Often people use require_gem to demand a version of a library that works with that program. require_gem "something", "<=0.6" > The trouble is that every script will have to be changed whenever the > version is changed. The point is that you _don't_ need to change your script, the script just uses the old version of the library. > As of now, I am first doing a gem uninstall -a and then do a > gem install Why not just use "gem cleanup"? Cheers, Dave From dave at burt.id.au Mon May 1 11:03:34 2006 From: dave at burt.id.au (Dave Burt) Date: Tue, 02 May 2006 01:03:34 +1000 Subject: [Wtr-general] The Watir Installer In-Reply-To: References: Message-ID: <44562346.2090504@burt.id.au> +1 Bret Pettichord wrote: > This is a proposal for packaging Watir 1.5. > > Watir will be distributed as two files. > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally > or remotely installed over the internet (as always). > 2. watir-bonus.zip - A zip file containing the user guide, the examples, > and notes on where to find the unit tests and API docs (which are > already in the gem). > ... > Please vote on this proposal. The installer is redundant and problematic (viz. conflicts with gem versions). Better one distribution than two. This two-part solution's a good idea. I won't need -bonus; I can use gems' doc server. Cheers, Dave From harrychou at gmail.com Mon May 1 11:19:27 2006 From: harrychou at gmail.com (Harry Chou) Date: Mon, 1 May 2006 11:19:27 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: <002601c66bcd$ded4bef0$6500a8c0@tintin> References: <002601c66bcd$ded4bef0$6500a8c0@tintin> Message-ID: <398ff7dc0605010819l6a9ebc8fj32be2ad6b9226b3@mail.gmail.com> I am newbie here. I am still learning Ruby and Watir is the whole reason I want to learn Ruby. I am afraid other new guys like me need to learn how to use GEM, before I can use Watir, before I start delve into Ruby. I am behind coporate firewall, I am constantly having touble using GEM installation. I know you will probably say GEM is easy. But, it's not easy for me. If it takes me more than couple hrs to know how to do it behind firewall, I am afraid other developers in my team will not bother to try it. Maybe I am missing something here. But, wouldn't we want to lower the barrier for people to use WATIR and even Ruby? On 4/29/06, Jonathan Kohl wrote: > > +1 > > > ________________________________ > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > Bret Pettichord > Sent: April 29, 2006 2:44 PM > To: wtr-general at rubyforge.org > Subject: [Wtr-general] The Watir Installer > > > This is a proposal for packaging Watir 1.5. > > Watir will be distributed as two files. > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or > remotely installed over the internet (as always). > 2. watir-bonus.zip - A zip file containing the user guide, the examples, and > notes on where to find the unit tests and API docs (which are already in the > gem). > > The gem would be required on any machine running Watir tests. The bonus zip > would be recommend for any users learning Watir. > > Specifically, i am proposing that we stop distributing the one-click > installer. Why? > - The one-click installer installs the watir library and other files in > different locations than the gem. This can lead to confusion. > - The gem is becoming the standard method of installing Ruby libraries. > - The one-click installer could be updated to make it more consistent with > the gem, but no one has signed up to do this. > - It is simpler to just have one method of installing Watir. > > I've discussed this off line with several people, but feel like this is > something that requires official community review. > > Please vote on this proposal. > > Bret > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > From PGarigue at EXTEND.COM Mon May 1 11:23:07 2006 From: PGarigue at EXTEND.COM (Pierre Garigue) Date: Mon, 1 May 2006 11:23:07 -0400 Subject: [Wtr-general] The Watir Installer Message-ID: what kind of problems are you having using Gem? -pierre -----Original Message----- From: Harry Chou [mailto:harrychou at gmail.com] Sent: Monday, May 01, 2006 11:19 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] The Watir Installer I am newbie here. I am still learning Ruby and Watir is the whole reason I want to learn Ruby. I am afraid other new guys like me need to learn how to use GEM, before I can use Watir, before I start delve into Ruby. I am behind coporate firewall, I am constantly having touble using GEM installation. I know you will probably say GEM is easy. But, it's not easy for me. If it takes me more than couple hrs to know how to do it behind firewall, I am afraid other developers in my team will not bother to try it. Maybe I am missing something here. But, wouldn't we want to lower the barrier for people to use WATIR and even Ruby? On 4/29/06, Jonathan Kohl wrote: > > +1 > > > ________________________________ > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > Bret Pettichord > Sent: April 29, 2006 2:44 PM > To: wtr-general at rubyforge.org > Subject: [Wtr-general] The Watir Installer > > > This is a proposal for packaging Watir 1.5. > > Watir will be distributed as two files. > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or > remotely installed over the internet (as always). > 2. watir-bonus.zip - A zip file containing the user guide, the examples, and > notes on where to find the unit tests and API docs (which are already in the > gem). > > The gem would be required on any machine running Watir tests. The bonus zip > would be recommend for any users learning Watir. > > Specifically, i am proposing that we stop distributing the one-click > installer. Why? > - The one-click installer installs the watir library and other files in > different locations than the gem. This can lead to confusion. > - The gem is becoming the standard method of installing Ruby libraries. > - The one-click installer could be updated to make it more consistent with > the gem, but no one has signed up to do this. > - It is simpler to just have one method of installing Watir. > > I've discussed this off line with several people, but feel like this is > something that requires official community review. > > Please vote on this proposal. > > Bret > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From harrychou at gmail.com Mon May 1 11:30:20 2006 From: harrychou at gmail.com (Harry Chou) Date: Mon, 1 May 2006 11:30:20 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: References: Message-ID: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> I don't think GEM works easily behind Firewall/Proxy. Am I not right? On 5/1/06, Pierre Garigue wrote: > what kind of problems are you having using Gem? > > -pierre > > -----Original Message----- > From: Harry Chou [mailto:harrychou at gmail.com] > Sent: Monday, May 01, 2006 11:19 AM > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] The Watir Installer > > > I am newbie here. I am still learning Ruby and Watir is the whole > reason I want to learn Ruby. I am afraid other new guys like me need > to learn how to use GEM, before I can use Watir, before I start delve > into Ruby. I am behind coporate firewall, I am constantly having > touble using GEM installation. > > I know you will probably say GEM is easy. But, it's not easy for me. > If it takes me more than couple hrs to know how to do it behind > firewall, I am afraid other developers in my team will not bother to > try it. > > Maybe I am missing something here. But, wouldn't we want to lower the > barrier for people to use WATIR and even Ruby? > > On 4/29/06, Jonathan Kohl wrote: > > > > +1 > > > > > > ________________________________ > > From: wtr-general-bounces at rubyforge.org > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > Bret Pettichord > > Sent: April 29, 2006 2:44 PM > > To: wtr-general at rubyforge.org > > Subject: [Wtr-general] The Watir Installer > > > > > > This is a proposal for packaging Watir 1.5. > > > > Watir will be distributed as two files. > > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or > > remotely installed over the internet (as always). > > 2. watir-bonus.zip - A zip file containing the user guide, the examples, and > > notes on where to find the unit tests and API docs (which are already in the > > gem). > > > > The gem would be required on any machine running Watir tests. The bonus zip > > would be recommend for any users learning Watir. > > > > Specifically, i am proposing that we stop distributing the one-click > > installer. Why? > > - The one-click installer installs the watir library and other files in > > different locations than the gem. This can lead to confusion. > > - The gem is becoming the standard method of installing Ruby libraries. > > - The one-click installer could be updated to make it more consistent with > > the gem, but no one has signed up to do this. > > - It is simpler to just have one method of installing Watir. > > > > I've discussed this off line with several people, but feel like this is > > something that requires official community review. > > > > Please vote on this proposal. > > > > Bret > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From charley.baker at gmail.com Mon May 1 11:30:54 2006 From: charley.baker at gmail.com (Charley Baker) Date: Mon, 1 May 2006 09:30:54 -0600 Subject: [Wtr-general] The Watir Installer In-Reply-To: <398ff7dc0605010819l6a9ebc8fj32be2ad6b9226b3@mail.gmail.com> References: <002601c66bcd$ded4bef0$6500a8c0@tintin> <398ff7dc0605010819l6a9ebc8fj32be2ad6b9226b3@mail.gmail.com> Message-ID: I had problems using gem remote installs through a corporate proxy server as well. You can however, just download the watir.gem and from the command line do: > gem install watir.gem in the directory you downloaded the gem into. That should be pretty simple and will be the same process when you want to download other gems at some point. Otherwise you might try through an authenticating proxy: gem install watir -p http://user at pass:proxy-url Or: gem install watir -p http://proxy-url For a non-authenticating proxy. -Charley On 5/1/06, Harry Chou wrote: > > I am newbie here. I am still learning Ruby and Watir is the whole > reason I want to learn Ruby. I am afraid other new guys like me need > to learn how to use GEM, before I can use Watir, before I start delve > into Ruby. I am behind coporate firewall, I am constantly having > touble using GEM installation. > > I know you will probably say GEM is easy. But, it's not easy for me. > If it takes me more than couple hrs to know how to do it behind > firewall, I am afraid other developers in my team will not bother to > try it. > > Maybe I am missing something here. But, wouldn't we want to lower the > barrier for people to use WATIR and even Ruby? > > On 4/29/06, Jonathan Kohl wrote: > > > > +1 > > > > > > ________________________________ > > From: wtr-general-bounces at rubyforge.org > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > Bret Pettichord > > Sent: April 29, 2006 2:44 PM > > To: wtr-general at rubyforge.org > > Subject: [Wtr-general] The Watir Installer > > > > > > This is a proposal for packaging Watir 1.5. > > > > Watir will be distributed as two files. > > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally > or > > remotely installed over the internet (as always). > > 2. watir-bonus.zip - A zip file containing the user guide, the examples, > and > > notes on where to find the unit tests and API docs (which are already in > the > > gem). > > > > The gem would be required on any machine running Watir tests. The bonus > zip > > would be recommend for any users learning Watir. > > > > Specifically, i am proposing that we stop distributing the one-click > > installer. Why? > > - The one-click installer installs the watir library and other files in > > different locations than the gem. This can lead to confusion. > > - The gem is becoming the standard method of installing Ruby libraries. > > - The one-click installer could be updated to make it more consistent > with > > the gem, but no one has signed up to do this. > > - It is simpler to just have one method of installing Watir. > > > > I've discussed this off line with several people, but feel like this is > > something that requires official community review. > > > > Please vote on this proposal. > > > > Bret > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/02d5871f/attachment.html From harrychou at gmail.com Mon May 1 11:31:34 2006 From: harrychou at gmail.com (Harry Chou) Date: Mon, 1 May 2006 11:31:34 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> Message-ID: <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> I know there perhaps are ways to get it working. I am just arguing that this will prevent people from JUST trying Watir. On 5/1/06, Harry Chou wrote: > I don't think GEM works easily behind Firewall/Proxy. Am I not right? > > On 5/1/06, Pierre Garigue wrote: > > what kind of problems are you having using Gem? > > > > -pierre > > > > -----Original Message----- > > From: Harry Chou [mailto:harrychou at gmail.com] > > Sent: Monday, May 01, 2006 11:19 AM > > To: wtr-general at rubyforge.org > > Subject: Re: [Wtr-general] The Watir Installer > > > > > > I am newbie here. I am still learning Ruby and Watir is the whole > > reason I want to learn Ruby. I am afraid other new guys like me need > > to learn how to use GEM, before I can use Watir, before I start delve > > into Ruby. I am behind coporate firewall, I am constantly having > > touble using GEM installation. > > > > I know you will probably say GEM is easy. But, it's not easy for me. > > If it takes me more than couple hrs to know how to do it behind > > firewall, I am afraid other developers in my team will not bother to > > try it. > > > > Maybe I am missing something here. But, wouldn't we want to lower the > > barrier for people to use WATIR and even Ruby? > > > > On 4/29/06, Jonathan Kohl wrote: > > > > > > +1 > > > > > > > > > ________________________________ > > > From: wtr-general-bounces at rubyforge.org > > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > > Bret Pettichord > > > Sent: April 29, 2006 2:44 PM > > > To: wtr-general at rubyforge.org > > > Subject: [Wtr-general] The Watir Installer > > > > > > > > > This is a proposal for packaging Watir 1.5. > > > > > > Watir will be distributed as two files. > > > 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or > > > remotely installed over the internet (as always). > > > 2. watir-bonus.zip - A zip file containing the user guide, the examples, and > > > notes on where to find the unit tests and API docs (which are already in the > > > gem). > > > > > > The gem would be required on any machine running Watir tests. The bonus zip > > > would be recommend for any users learning Watir. > > > > > > Specifically, i am proposing that we stop distributing the one-click > > > installer. Why? > > > - The one-click installer installs the watir library and other files in > > > different locations than the gem. This can lead to confusion. > > > - The gem is becoming the standard method of installing Ruby libraries. > > > - The one-click installer could be updated to make it more consistent with > > > the gem, but no one has signed up to do this. > > > - It is simpler to just have one method of installing Watir. > > > > > > I've discussed this off line with several people, but feel like this is > > > something that requires official community review. > > > > > > Please vote on this proposal. > > > > > > Bret > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > From dave at burt.id.au Mon May 1 11:42:12 2006 From: dave at burt.id.au (Dave Burt) Date: Tue, 02 May 2006 01:42:12 +1000 Subject: [Wtr-general] The Watir Installer In-Reply-To: <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> Message-ID: <44562C54.6030704@burt.id.au> Harry Chou wrote: > On 5/1/06, Harry Chou wrote: >> I don't think GEM works easily behind Firewall/Proxy. Am I not right? > I know there perhaps are ways to get it working. I am just arguing > that this will prevent people from JUST trying Watir. You can easily download the gem and install it locally. I don't think it should be a deterrent, especially if this info is easily available. Cheers, Dave From harrychou at gmail.com Mon May 1 12:24:09 2006 From: harrychou at gmail.com (Harry Chou) Date: Mon, 1 May 2006 12:24:09 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: <44562C54.6030704@burt.id.au> References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> <44562C54.6030704@burt.id.au> Message-ID: <398ff7dc0605010924y227af1b4s234f1669554c1812@mail.gmail.com> Alright. I haven't try that. I will give it a try. Thanks. On 5/1/06, Dave Burt wrote: > Harry Chou wrote: > > On 5/1/06, Harry Chou wrote: > >> I don't think GEM works easily behind Firewall/Proxy. Am I not right? > > I know there perhaps are ways to get it working. I am just arguing > > that this will prevent people from JUST trying Watir. > > You can easily download the gem and install it locally. I don't think it > should be a deterrent, especially if this info is easily available. > > Cheers, > Dave > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From harrychou at gmail.com Mon May 1 12:26:05 2006 From: harrychou at gmail.com (Harry Chou) Date: Mon, 1 May 2006 12:26:05 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: <398ff7dc0605010924y227af1b4s234f1669554c1812@mail.gmail.com> References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> <44562C54.6030704@burt.id.au> <398ff7dc0605010924y227af1b4s234f1669554c1812@mail.gmail.com> Message-ID: <398ff7dc0605010926o741d2bfdk4bcb4ea499cdb352@mail.gmail.com> For using this command: gem install watir -p http://user at pass:proxy-url What should I do if my username or password contains a @ character? On 5/1/06, Harry Chou wrote: > Alright. I haven't try that. I will give it a try. Thanks. > > On 5/1/06, Dave Burt wrote: > > Harry Chou wrote: > > > On 5/1/06, Harry Chou wrote: > > >> I don't think GEM works easily behind Firewall/Proxy. Am I not right? > > > I know there perhaps are ways to get it working. I am just arguing > > > that this will prevent people from JUST trying Watir. > > > > You can easily download the gem and install it locally. I don't think it > > should be a deterrent, especially if this info is easily available. > > > > Cheers, > > Dave > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > From bret at pettichord.com Mon May 1 13:14:43 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 1 May 2006 12:14:43 -0500 Subject: [Wtr-general] The Watir Installer In-Reply-To: <398ff7dc0605010926o741d2bfdk4bcb4ea499cdb352@mail.gmail.com> References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> <44562C54.6030704@burt.id.au> <398ff7dc0605010924y227af1b4s234f1669554c1812@mail.gmail.com> <398ff7dc0605010926o741d2bfdk4bcb4ea499cdb352@mail.gmail.com> Message-ID: Harry, Just download the gem the way you would download any other file. Then you need open a command window, and cd to the directory containing the file. Then you type "gem install watir". This command will first look in the current directory for the gem before searching for it over the internet. We will have to clearly document this procedure for those users who are new to Watir and Ruby and behind firewalls. Bret On 5/1/06, Harry Chou wrote: > > For using this command: > > gem install watir -p http://user at pass:proxy-url > > What should I do if my username or password contains a @ character? > > On 5/1/06, Harry Chou wrote: > > Alright. I haven't try that. I will give it a try. Thanks. > > > > On 5/1/06, Dave Burt wrote: > > > Harry Chou wrote: > > > > On 5/1/06, Harry Chou wrote: > > > >> I don't think GEM works easily behind Firewall/Proxy. Am I not > right? > > > > I know there perhaps are ways to get it working. I am just arguing > > > > that this will prevent people from JUST trying Watir. > > > > > > You can easily download the gem and install it locally. I don't think > it > > > should be a deterrent, especially if this info is easily available. > > > > > > Cheers, > > > Dave > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/5a3aefe9/attachment.html From Mark_Cain at rl.gov Mon May 1 10:13:22 2006 From: Mark_Cain at rl.gov (Cain, Mark) Date: Mon, 1 May 2006 07:13:22 -0700 Subject: [Wtr-general] [ANN] RuMBA Message-ID: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76DB@EX5V.rl.gov> If you are not aware of this Microsoft change to Internet Explorer then you should be since FLASH is an ActiveX implementation in IE. The result of this change will require some human interaction (clicking the spacebar or enter key) before the FLASH object will be invoked inside IE. I don't know whether RuMBA will be directly affected by this, but thought you might like to know. Subject: Internet Explorer ActiveX Update Important Note: Please consider this version to supersede any previous version you may have received.* Summary Microsoft will be making some necessary changes to Microsoft Windows desktop operating system software related to the way in which Internet Explorer handles some web pages. The purpose of this communication is to provide additional information on the planned IE Active X update for Windows(r) client and server, and to point organizations and website developers to technical information. These changes are related to Internet Explorer and the Eolas Technologies and the Regents of the University of California v. Microsoft patent case (Eolas v. Microsoft). The IE Active X update will be rolled-up and included in the next available Internet Explorer security update, which could come as soon as the April 2006 Bulletin release. This update will be required via Windows Update and Automatic Update. Recommended Action Microsoft recommends that organizations evaluate their internal applications with this update. Testing can be done by installing the update on a client machine and navigating to web pages/applications in IE. Application owners can update their web pages using the techniques suggested on MSDN at http://msdn.microsoft.com/ieupdate, to ensure controls will function without user interaction. Customers who do not deploy the next available Internet Explorer security update, which includes the IE Active X update, will not receive the most current security patches and may put their environment at risk. Scope of Release * The IE Active X Update will affect Windows(r) XP SP2, Windows(r) Server 2003 SP1 and Windows(r) Server 2003 R2 Products (including versions of those products for Embedded Systems). o Client SKUs including Starter Edition, Home Edition, Professional, Tablet PC Edition, Media Center Edition and Professional for Embedded Systems will be updated. o Updates to Windows Server include Windows Server 2003 SP1, Windows Server 2003 R2 (CD1), and Small Business Server. * Additionally, MS plans to re-release full versions of Windows Client XP SP2, Windows Server 2003 SP1, and Windows Server 2003 R2 (including versions for Embedded Systems) to all channels (OEM, Retail, Volume Licensing) in a phased approach during the February - June 2006 timeframe. * At this time we are not releasing other downlevel versions of IE or Windows, however we may do so in the future. . Described Functionality MSDN Article: http://msdn.microsoft.com/ieupdate Knowledge Base: http://support.microsoft.com/kb/912945/en-us * Users cannot directly interact with Microsoft ActiveX controls loaded by the APPLET , EMBED , or OBJECT elements. Users can interact with such controls after activating their user interfaces. To activate an interactive control, either click it or use the TAB key to set focus on it and then press the SPACEBAR or the ENTER key. * Certain Windowed ActiveX controls still receive mouse and keyboard messages when they are disabled because they use the Windows APIs GetKeyState and GetCursorPos to obtain the system keyboard and cursor messages. For these controls only, a prompt will be shown before the control is loaded and once loaded the control will be interactive. The following CLSIDs will show a prompt. o Virtools: {C4925E65-7A1E-11D2-8BB4-00A0C9CC72C3} o Shockwave: {166B1BCA-3F9C-11CF-8075-444553540000} o Quicktime: {02BF25D5-8C17-4B23-BC80-D3488ABDDC6B} Note: We are working with the companies that provide these Active X controls, to provide technical guidance, on future versions that will be able to be activated in the page rather than prompting. * Web developers should test the code posted on MSDN and update their web pages using the techniques Microsoft suggests on MSDN at http://msdn.microsoft.com/ieupdate, to ensure controls will function without user interaction. Known Issues Please see compete list of known issues - http://support.microsoft.com/kb/912945/en-us The IE Active-X update will affect all Siebel 7 High Interactive clients. After you apply this security update, you will have to click several times to interact with the Siebel program, one time for each ActiveX control in the program. Siebel is working with Microsoft to identify a solution. A Siebel product update is expected to release in the spring of 2006. For more information about Siebel product updates, visit the following Siebel Support Web site: https://ebusiness.siebel.com/supportweb/ Key Date Summary: December 2, 2005 Microsoft held a meeting at the Silicon Valley campus to describe the upcoming changes to key External Partners, (ISVs, OEMs, Content Providers). January 9, 2005 Microsoft posted a pre-release IE Active X update for Windows XP SP2 to MSDN subscribers. February 9, 2006 Completion of Microsoft's internal software testing. February 9, 2006 Microsoft posted a pre-release IE Active X update for Windows XP SP2 (all languages) to the public MSDN site. February 28, 2006 Release of IE Active X update to Windows Update as an optional download (all languages). Technical Support In order to ensure that your technical issues are resolved in a timely manner, we request that you engage the Microsoft Product Support Services team for further assistance. Microsoft Premier customers may engage their Technical Account Manager directly or call the Microsoft Support Customer Care center. If you are not a Microsoft Premier customer you may call the Microsoft Support Customer Care center for assistance. Visit http://support.microsoft.com for more information. We value your business and are committed to customer care. Please contact us if we can assist or answer any questions. *This letter has been revised to remove references to specific dates for the security update it discusses. The previous version of this letter disclosed a proposed date for a security release. While we are confident that everything is being done to ensure the update ships, there remains a small chance that an unforeseen issue could cause a delay. This is the reason we do not provide advance notification of specific update release dates. Please consider this version to supersede any previous version you may have received. --Mark -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Paul Rogers Sent: Saturday, April 29, 2006 10:10 PM To: wtr-general at rubyforge.org Subject: [Wtr-general] [ANN] RuMBA Im pleased to announce Ive started work on RuMBA - Ruby Multiple Browser Accessor. What Is It? RuMBA will allow a watir like script to access muliple browser types - IE, FireFox etc. It will work cross platform, allowing linux and mac to be supported. Ive done enough work to think that it will work the way I expect. There is no code currently checked in. How Does It Work? At the Canada On Rails Conference in Vancouver on April 12, David HH ( the creator of rails) demonstrated some technology called Armageddon. While this is not currently available in Rails, Ive found a similar library that will allow me to do the same thing. I expect to move to Armageddon when it becomes available. Argageddon and Aflax( the library Im currently using ) use FLASH to access the dom of a web page. This is typically used to provide push functionality - ie the server is able to send data to a browser without the browser continually polling the server. We can utilise this to set fields and click buttons. The advantage is that it is cross browser, rather than being limited to Internet Explorer. ( its also fast - this being the biggest downside Ive seen to FireWatir) The DownSide to make this work cross browser, the html must contain the flash object and some javascript. The easy way is to have the server do this for you. If you are using rails, its easy. Other server technologies may be harder to have it work in test and easily switch off for a production environment. The other alternative is to do it client side, using a proxy that alters the HTML that is delivered to the browser. What Can you expect, and When. I expect the initial release will only allow finding elements using :id. Constructs like table(:id, 'xx).button(:id,'yy') are unlikely to be supported any time soon. Handling of javascript popups like alerts and file requesters is unlikely to be in anytime soon ( I have no idea how to handle this on linux or mac) The first release will be a simple demo of the technology, allowing field sets and button clicks, as well as retreiving some info about the page ( url, title etc) Im unlikely to have anything soon. Its summer, and Im generally very busy, which leaves me little time to work on this. However I know there is significant interest in the community and my various clients are also interested in having support for firefox too. Help Wanted. If you have some specific knowledge, particularly in linux or mac areas I would be interested in hearing from you. If you are able to test this on OS other than windows, I would also like to hear from you. If you have some spare time and have ruby and javascript knowledge, Ive got a big list of things that need to be done. If you can write documentation I REALLY need you! If you cant do any of the above, but know you want to do cross browser testing, please also get in contact, as just knowing what you want to do will be a big help. For now, please contact me at paul.rogers at shaw.ca - please put rumba in the subject. How this might work. This may change, its just here to show you how this thing may work. If I have 2 browsers, one IE and 1 FF: I might type ( at IRB, ignoring all the set up ) irb> rumba.clients 1... FF http://localhost:8080/test1.html 2... IE http://localhost:8080/test2.html irb> ff=rumba.attach(:instance,1) irb> ff.title A Test Page irb> ff.goto('http://localhost:8080/test3.html') ok irb> ff.button(:id , 'abutton').click you get idea I hope Paul _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/0db7c716/attachment.html From bret at pettichord.com Mon May 1 13:18:41 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 1 May 2006 12:18:41 -0500 Subject: [Wtr-general] [OT] - Gem upgrade? In-Reply-To: <44561BC1.4090204@qantom.com> References: <44544D98.9070909@qantom.com> <4455C263.2050500@burt.id.au> <44561BC1.4090204@qantom.com> Message-ID: On 5/1/06, Raghu Venkataramana wrote: > > With two versions(and as time goes by it could be more than two) > of a gem library, the > script sometimes pickups the API from the wrong gem and fails. Are you sure? I have seen this happen when you have one version installed as a gem and another installed as a non-gem. If this is really happening with two gems, then it is a show-stopper problem because this is the very problem that gems were designed to solve. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/09d9fd0d/attachment.html From raghu at qantom.com Mon May 1 13:48:22 2006 From: raghu at qantom.com (Raghu Venkataramana) Date: Mon, 01 May 2006 23:18:22 +0530 Subject: [Wtr-general] [OT] - Gem upgrade? In-Reply-To: References: <44544D98.9070909@qantom.com> <4455C263.2050500@burt.id.au> <44561BC1.4090204@qantom.com> Message-ID: <445649E6.7050408@qantom.com> Bret Pettichord wrote: > On 5/1/06, *Raghu Venkataramana* > wrote: > > With two versions(and as time goes by it could be more than two) > of a gem library, the > script sometimes pickups the API from the wrong gem and fails. > > > Are you sure? I have seen this happen when you have one version > installed as a gem and another installed as a non-gem. > > If this is really happening with two gems, then it is a show-stopper > problem because this is the very problem that gems were designed to solve. I am not absolutely sure, but here's what happened: 1. I had a previous version of GEM installed. (0.5) 2. I then installed the latest version of GEM (0.8) and tried to run the unit tests. Unit tests failed. 3. I did a gem list - of the entries the one for wet was - wet-web (0.5, 0.8). In the ${ruby_gem} directory, there were two wet-web directories 4. Since these tests _could not_ have passed in 0.5, I thought that the problem was due to the two gem files trying to co-exist. 5. I did a gem uninstall wet-web -a. 6. I then installed 0.8 gem again and ran the unit tests. This time, the tests passed. My guess is that the problem happened due to the fact that there were both the gems installed on the system and the tests were trying to access the wrong version. (However I didn't do a good tester's job by trying to reproduce the problem. I was simply happy that everything worked for me and forgot about it) Raghu > >------------------------------------------------------------------------ > >_______________________________________________ >Wtr-general mailing list >Wtr-general at rubyforge.org >http://rubyforge.org/mailman/listinfo/wtr-general > From tester.paul at gmail.com Mon May 1 13:48:39 2006 From: tester.paul at gmail.com (Paul Carvalho) Date: Mon, 1 May 2006 13:48:39 -0400 Subject: [Wtr-general] The Watir Installer In-Reply-To: References: <398ff7dc0605010830v362da560m98b788a39d685167@mail.gmail.com> <398ff7dc0605010831of96038ar2186fddf4e8aab62@mail.gmail.com> <44562C54.6030704@burt.id.au> <398ff7dc0605010924y227af1b4s234f1669554c1812@mail.gmail.com> <398ff7dc0605010926o741d2bfdk4bcb4ea499cdb352@mail.gmail.com> Message-ID: <37c405480605011048u7c12de82jc14adc41fbb02982@mail.gmail.com> You could also create a batch file called 'install.bat' that simply has the "gem install watir" command. On 01/05/06, Bret Pettichord wrote: > > Harry, > > Just download the gem the way you would download any other file. > > Then you need open a command window, and cd to the directory containing > the file. > > Then you type "gem install watir". This command will first look in the > current directory for the gem before searching for it over the internet. > > We will have to clearly document this procedure for those users who are > new to Watir and Ruby and behind firewalls. > > Bret > > > On 5/1/06, Harry Chou wrote: > > > > For using this command: > > > > gem install watir -p http://user at pass:proxy-url > > > > What should I do if my username or password contains a @ character? > > > > On 5/1/06, Harry Chou < harrychou at gmail.com> wrote: > > > Alright. I haven't try that. I will give it a try. Thanks. > > > > > > On 5/1/06, Dave Burt wrote: > > > > Harry Chou wrote: > > > > > On 5/1/06, Harry Chou wrote: > > > > >> I don't think GEM works easily behind Firewall/Proxy. Am I not > > right? > > > > > I know there perhaps are ways to get it working. I am just arguing > > > > > > > that this will prevent people from JUST trying Watir. > > > > > > > > You can easily download the gem and install it locally. I don't > > think it > > > > should be a deterrent, especially if this info is easily available. > > > > > > > > Cheers, > > > > Dave > > > > _______________________________________________ > > > > Wtr-general mailing list > > > > Wtr-general at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/464447af/attachment.html From bret at pettichord.com Mon May 1 15:35:57 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 1 May 2006 14:35:57 -0500 Subject: [Wtr-general] [ANN] RuMBA In-Reply-To: References: Message-ID: On 4/30/06, Paul Rogers wrote: > > The DownSide > > to make this work cross browser, the html must contain the flash object > and some javascript. The easy way is to have the server do this for you. If > you are using rails, its easy. Other server technologies may be harder to > have it work in test and easily switch off for a production environment. > The other alternative is to do it client side, using a proxy that alters > the HTML that is delivered to the browser. I'm curious why you aren't using Selenium RC? The main drawback to it is that it also requires a server-side implant, but you seem to be willing to do that. On the other hand, it is open source and supports lots of browsers, not just Firefox and IE. I figured a Watir-like Ruby interface to Selenium RC would be easier. Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/d35e9480/attachment.html From bret at pettichord.com Mon May 1 22:29:12 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 1 May 2006 21:29:12 -0500 Subject: [Wtr-general] Tracking down xpath bug In-Reply-To: References: Message-ID: I'm also seeing this error. I had to get click a dialog to stop seeing the javascript/missing image errors. Bret On 4/29/06, Charley Baker wrote: > > Hrrrm, I'm getting errors running the test, main results: 2 tests, 1 > assertion, 1 failure, 1 error. Images are missing on the html page under > test: list_matter.html. They all refer to AIMS/images/... > > Error 1 listed at the bottom. > Here's how I installed: > - Deleted Watir and Rexml files from my Ruby install. > - Pulled Watir from HEAD, ran 'gem build' against the watir.gemspec to > create watir-1.5.0.971.gem. Installed the gem. > - Downloaded rexml and installed 3.1.4 from bin/install.rb. > - Sanity version checking: > require 'watir' > require 'rexml/rexml' > > p "Watir version: " + Watir::IE::VERSION > p "Rexml version: " + REXML::Version > p "Platform: " + PLATFORM > > => "Watir version: 1.5.0.971" > "Rexml version: 3.1.4" > "Platform: i386-mswin32" > > I'm continuing to work on it, but this is what I'm getting now. > > Error 1: > 1) Error: > test_div_with_contains(TC_Divs_XPath2): > NoMethodError: undefined method `include?' for nil:NilClass > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/functions.rb:142:in > `contains' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `send' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `expr' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in > `each_with_i > ndex' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in > `each_with_i > ndex' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `expr' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:387:in `expr' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:283:in `expr' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in > `each_with_i > ndex' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in > `each_with_i > ndex' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `expr' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:488:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `each_index' > > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in > `d_o_s' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:476:in > `descendant_ > or_self' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:315:in `expr' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:125:in > `match' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:56:in `parse' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/xpath.rb:53:in `each' > C:/dev/ruby/lib/ruby/site_ruby/1.8/rexml/element.rb:939:in `each' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.971 > /unittests/../watir.rb:195 > 4:in `elements_by_xpath' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.971 > /unittests/../watir.rb:194 > 4:in `element_by_xpath' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.971 > /unittests/../watir.rb:268 > 2:in `locate' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.971 > /unittests/../watir.rb:215 > 1:in `assert_exists' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir- 1.5.0.971 > /unittests/../watir.rb:221 > 9:in `text' > C:/dev/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.971 > /unittests/div2_xpath_test > .rb:19:in `test_div_with_contains' > > On 4/29/06, Bret Pettichord wrote: > > > Angrez and i are getting different results when we execute > div2_xpath_test.rb. > > I'd appreciate it if others could get the latest code from HEAD, execute > this test, and tell us what happens. You'll have to install REXML 3.1.4first. > > Bret > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060501/2e68bc63/attachment.html From zeljko.filipin at gmail.com Tue May 2 03:21:16 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Tue, 2 May 2006 09:21:16 +0200 Subject: [Wtr-general] Using the OpenQA Forums In-Reply-To: References: Message-ID: Sounds good to me. On 4/29/06, Bret Pettichord wrote:> I suggest that we make use of the Open QA Forums. The details of this> suggestion are below. But first, some background.>> The wtr-general mailing list>> On several occassions the Watir community has clearly indicated that> it did not want to see separate lists for users and> developers. Instead we have a common mailing list called wtr-general> hosted at Rubyforge.org. This mailing list is open to anybody and only> accepts posts from members. It is very active and encourages> discussions of testing with Ruby whether or not Watir is specifically> being used.>> List maintenance is minor; mostly it consists of approving occassional> posts that have either large attachments (over 40 KB) or are from> members who are using a different email address from their> subscription (although i wouldn't mind another volunteer to help with> this).>> The biggest drawback to the list is the difficulty of searching the> archives. However, this is a less of a problem than it used to be> because we've added a search feature to the project web page, and the> list is also mirrored to another site with better archiving.>> For further details, see> http://rubyforge.org/mailman/listinfo/wtr-general>> The Current OpenQA Watir Forums>> The standard Open QA hosting arrangement includes two web-based> forums, one for users and one for developers. These were set up for> Watir when we first set up at Open QA, but they have gone largely> unused and neglected.>> According to the Open QA website, there are also corresponding mailing> lists for these forums, but in my discussions with Patrick, I> understood that these haven't actually been set up. He also tells us> that he can synchronize forums with existing email lists hosted at> other sites.>> These forums have the advantage of being easy to browse and search for> casual users. They also have an interesting feature that allows> tracking which questions have been answered and who is answering the> most questions. And they offer RSS feeds, which offers an alternative> way of tracking a discussion without subscribing.>> For details, see> http://forums.openqa.org/category.jspa?categoryID=4>> The Proposal>> I am proposing that the current wtr-general mailing list be mirrored> at OpenQA. The Watir community has recently requested that we create a> new mailing to handle support of the Watir code currently in> development (namely Watir 1.5 and FireWatir). I am proposing that a> new list be created at Rubyforge (wtr-development) and that it be> mirrored by a new forum at OpenQA (Watir Development).>> The following is a detailed action plan for how to make this all> happen. If this plan is approved by the community, i will work with> Patrick and Charley on the implementation.>> Setting Up Watir General>> 1. Delete the Watir Users and Watir Developers Forums.> 2. Create a new Forum called Watir General.> 3. Set up Watir General to include the traffic from wtr-general.> 4. Get the pre-transfer archives of wtr-general from rubyforge and> have these placed in the Watir General Archives.>> Setting Up Watir Development>> 1. Create a new mailing list wtr-development at Rubyforge.> 2. Create a new Forum at OpenQA called Watir Development.> 3. Open up the list to new subscribers.>>> _______________________________________________> Wtr-general mailing list> Wtr-general at rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general>> --http://www.testingreflections.com/blog/3071 From zeljko.filipin at gmail.com Tue May 2 03:25:47 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Tue, 2 May 2006 09:25:47 +0200 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: <416BE996E3CA9548819C278CE307B1D31F1093@MERCMBX03.na.sas.com> References: <416BE996E3CA9548819C278CE307B1D31F1093@MERCMBX03.na.sas.com> Message-ID: Maybe this will help.http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe On 4/30/06, George Flaherty wrote:> I am currently evaluating Watir for one of our web based applications. The application I am using for evaluation of watir contains quite a bit of frame sets. Now when I try to determine the HTMLinks within the frames I get --Access Denied--?>> Am I doing something wrong, or missing? Maybe and outdated version of Watir?>> Thanks> -george>> Version Info:> ===========> Watir 1.4.1> Ruby 1.8.2> IE 6.0.2900.>> Here is my simple test:> =======================> require 'watir'>> ie = Watir::IE.attach(:title,/Marketmax - Integrated Mer/)> ie.show_frames>>> Here is the error I am receiving:> =======================> W, [29-Apr-2006 08:51:34#3756] WARN -- : frame error in waitdocument> OLE error code:80070005 in > Access is denied.>>> HRESULT error code:0x80020009> Exception occurred.> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1113:in `attach_init'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach'> C:/georgef/work/MATS2.1-Ezrah/scripts/watir/IMPS-Web61/Sandbox.rb:3> there are 2 frames> frame index: 1 --Access Denied--> frame index: 2 --Access Denied-->>>>>> _______________________________________________> Wtr-general mailing list> Wtr-general at rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general> --http://www.testingreflections.com/blog/3071 From zeljko.filipin at gmail.com Tue May 2 03:38:30 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Tue, 2 May 2006 09:38:30 +0200 Subject: [Wtr-general] The Watir Installer In-Reply-To: References: Message-ID: +1 On 4/29/06, Bret Pettichord wrote:> This is a proposal for packaging Watir 1.5.>> Watir will be distributed as two files.> 1. watir-1.5.0.gem - A gem that can be downloaded and installed locally or> remotely installed over the internet (as always).> 2. watir-bonus.zip - A zip file containing the user guide, the examples,> and notes on where to find the unit tests and API docs (which are already in> the gem).>> The gem would be required on any machine running Watir tests. The bonus zip> would be recommend for any users learning Watir.>> Specifically, i am proposing that we stop distributing the one-click> installer. Why?> - The one-click installer installs the watir library and other files in> different locations than the gem. This can lead to confusion.> - The gem is becoming the standard method of installing Ruby libraries.> - The one-click installer could be updated to make it more consistent with> the gem, but no one has signed up to do this.> - It is simpler to just have one method of installing Watir.>> I've discussed this off line with several people, but feel like this is> something that requires official community review.>> Please vote on this proposal.>> Bret>> _______________________________________________> Wtr-general mailing list> Wtr-general at rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general>> --http://www.testingreflections.com/blog/3071 From zeljko.filipin at gmail.com Tue May 2 04:22:22 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Tue, 2 May 2006 10:22:22 +0200 Subject: [Wtr-general] Tracking down xpath bug In-Reply-To: References: Message-ID: I had to disable "Display a notification about every script error"(Tools > Internet Options > Advanced > Browsing) because several errorreporting pop-ups appeared. irb(main):004:0* p "Watir version: " + Watir::IE::VERSION"Watir version: 1.5.0.973"irb(main):005:0> p "Rexml version: " + REXML::Version"Rexml version: 3.1.4"irb(main):006:0> p "Platform: " + PLATFORM"Platform: i386-mswin32" C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.0.973\unittests>div2_xpath_test.rbLoaded suite C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/div2_xpath_testStartedEFFinished in 5.404 seconds. 1) Error:test_div_with_contains(TC_Divs_XPath2):NoMethodError: undefined method `include?' for nil:NilClass c:/ruby/lib/ruby/site_ruby/1.8/rexml/functions.rb:142:in `contains' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `send' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:451:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:438:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:387:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:283:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in`each_with_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:277:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:488:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:490:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `each_index' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:485:in `d_o_s' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:476:in`descendant_or_self' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:315:in `expr' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:125:in `match' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath_parser.rb:56:in `parse' c:/ruby/lib/ruby/site_ruby/1.8/rexml/xpath.rb:53:in `each' c:/ruby/lib/ruby/site_ruby/1.8/rexml/element.rb:939:in `each' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/../watir.rb:1954:in`elements_by_xpath' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/../watir.rb:1944:in`element_by_xpath' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/../watir.rb:2682:in`locate' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/../watir.rb:2151:in`assert_exists' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/../watir.rb:2219:in`text' C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/div2_xpath_test.rb:19:in`test_div_with_contains' 2) Failure:test_div_with_text(TC_Divs_XPath2)[C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.0.973/unittests/div2_xpath_test.rb:14]:<"Add"> expected but was<"Open | Closed | All">. 2 tests, 1 assertions, 1 failures, 1 errors From George.Flaherty at sas.com Tue May 2 08:06:20 2006 From: George.Flaherty at sas.com (George Flaherty) Date: Tue, 2 May 2006 08:06:20 -0400 Subject: [Wtr-general] Access Denied with Frames Message-ID: <416BE996E3CA9548819C278CE307B1D31F19CE@MERCMBX03.na.sas.com> That was it! I included my server domains within the "Trusted" sites under IE security, and now the frames and links within the frames are visible to me! Thanks! -george -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Zeljko Filipin Sent: Tuesday, May 02, 2006 3:26 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Access Denied with Frames Maybe this will help.http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe On 4/30/06, George Flaherty wrote:> I am currently evaluating Watir for one of our web based applications. The application I am using for evaluation of watir contains quite a bit of frame sets. Now when I try to determine the HTMLinks within the frames I get --Access Denied--?>> Am I doing something wrong, or missing? Maybe and outdated version of Watir?>> Thanks> -george>> Version Info:> ===========> Watir 1.4.1> Ruby 1.8.2> IE 6.0.2900.>> Here is my simple test:> =======================> require 'watir'>> ie = Watir::IE.attach(:title,/Marketmax - Integrated Mer/)> ie.show_frames>>> Here is the error I am receiving:> =======================> W, [29-Apr-2006 08:51:34#3756] WARN -- : frame error in waitdocument> OLE error code:80070005 in > Access is denied.>>> HRESULT error code:0x80020009> Exception occurred.> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing'> C:/usr/ruby/lib/ruby/site_ruby/1.8/wati! r.rb:1405:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1113:in `attach_init'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach'> C:/georgef/work/MATS2.1-Ezrah/scripts/watir/IMPS-Web61/Sandbox.rb:3> there are 2 frames> frame index: 1 --Access Denied--> frame index: 2 --Access Denied-->>>>>> _______________________________________________> Wtr-general mailing list> Wtr-general at rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general> --http://www.testingreflections.com/blog/3071 _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From mb at michaelbolton.net Tue May 2 13:45:04 2006 From: mb at michaelbolton.net (Michael Bolton) Date: Tue, 2 May 2006 13:45:04 -0400 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: Message-ID: <00c801c66e10$255b4b70$6601a8c0@Koko> It clearly helps some people. I wonder if the error message could include the suggestion to add the server to the trusted site? (I'll volunteer to help with the writing of it.) ---Michael B. -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Zeljko Filipin Sent: May 2, 2006 3:26 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Access Denied with Frames Maybe this will help.http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoacce ssaframe On 4/30/06, George Flaherty wrote:> I am currently evaluating Watir for one of our web based applications. The application I am using for evaluation of watir contains quite a bit of frame sets. Now when I try to determine the HTMLinks within the frames I get --Access Denied--?>> Am I doing something wrong, or missing? Maybe and outdated version of Watir?>> Thanks> -george>> Version Info:> ===========> Watir 1.4.1> Ruby 1.8.2> IE 6.0.2900.>> Here is my simple test:> =======================> require 'watir'>> ie = Watir::IE.attach(:title,/Marketmax - Integrated Mer/)> ie.show_frames>>> Here is the error I am receiving:> =======================> W, [29-Apr-2006 08:51:34#3756] WARN -- : frame error in waitdocument> OLE error code:80070005 in > Access is denied.>>> HRESULT error code:0x80020009> Exception occurred.> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in `method_missing'> C:/usr/ruby/lib/ruby/site_ruby/1.8/wati! r.rb:1405:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `upto'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1113:in `attach_init'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach'> C:/georgef/work/MATS2.1-Ezrah/scripts/watir/IMPS-Web61/Sandbox.rb:3> there are 2 frames> frame index: 1 --Access Denied--> frame index: 2 --Access Denied-->>>>>> _______________________________________________> Wtr-general mailing list> Wtr-general at rubyforge.org> http://rubyforge.org/mailman/listinfo/wtr-general> --http://www.testingreflections.com/blog/3071 _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From bret at pettichord.com Tue May 2 15:01:14 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 2 May 2006 14:01:14 -0500 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: <00c801c66e10$255b4b70$6601a8c0@Koko> References: <00c801c66e10$255b4b70$6601a8c0@Koko> Message-ID: I've changed this error message to say "Access Denied, see http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe " Please rephrase this wiki page if you have a better suggestion for the advice people should get in this situation. Bret On 5/2/06, Michael Bolton wrote: > > It clearly helps some people. I wonder if the error message could include > the suggestion to add the server to the trusted site? (I'll volunteer to > help with the writing of it.) > > ---Michael B. > > -----Original Message----- > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Zeljko Filipin > Sent: May 2, 2006 3:26 AM > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] Access Denied with Frames > > Maybe this will > help > .http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoacce > ssaframe > On 4/30/06, George Flaherty wrote:> I am > currently > evaluating Watir for one of our web based applications. The application I > am > using for evaluation of watir contains quite a bit of frame sets. Now when > I > try to determine the HTMLinks within the frames I get --Access Denied--?>> > Am I doing something wrong, or missing? Maybe and outdated version of > Watir?>> Thanks> -george>> Version Info:> ===========> Watir 1.4.1> Ruby > 1.8.2> IE 6.0.2900.>> Here is my simple test:> =======================> > require 'watir'>> ie = Watir::IE.attach(:title,/Marketmax - Integrated > Mer/)> ie.show_frames>>> Here is the error I am receiving:> > =======================> W, [29-Apr-2006 08:51:34#3756] WARN -- : frame > error in waitdocument> OLE error code:80070005 in > > Access is denied.>>> HRESULT error code:0x80020009> Exception > occurred.> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1405:in > `method_missing'> C:/usr/ruby/lib/ruby/site_ruby/1.8/wati! > r.rb:1405:in `wait'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in > `upto'> C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1404:in `wait'> > C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1113:in `attach_init'> > C:/usr/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach'> > C:/georgef/work/MATS2.1-Ezrah/scripts/watir/IMPS-Web61/Sandbox.rb:3> there > are 2 frames> frame index: 1 --Access Denied--> frame index: 2 --Access > Denied-->>>>>> _______________________________________________> > Wtr-general > mailing list> Wtr-general at rubyforge.org> > http://rubyforge.org/mailman/listinfo/wtr-general> > > --http://www.testingreflections.com/blog/3071 > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060502/941ce237/attachment.html From tester.paul at gmail.com Tue May 2 15:48:50 2006 From: tester.paul at gmail.com (Paul Carvalho) Date: Tue, 2 May 2006 15:48:50 -0400 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: References: <00c801c66e10$255b4b70$6601a8c0@Koko> Message-ID: <37c405480605021248j3c46290etc1934a6249b8d497@mail.gmail.com> Just for the record, none of the advice in this FAQ entry have helped me get rid of this error. =( I'm not trying to navigate to a frame on another site, but the two outside (empty) frames are hosted on a separate resource web site. When I check the frames, I see the following output: ---- irb(main):128:0> ie.show_frames there are 4 frames frame index: 1 --Access Denied-- frame index: 2 name: FooBar frame index: 3 name: MainWindow frame index: 4 --Access Denied-- => 0..3 ---- I get these "Access is Denied" warnings randomly when I click buttons and follow links in the 'MainWindow' frame. This frame is hosted on the same site, so I don't know why the warning messages keep appearing. I've tried everything in the FAQ but to no avail: 1. Navigate directly to the subframe.. --> Not relevant. I'm not navigating to a different subframe. 2. Add host to the Trusted Sites list. --> Did it. No effect. Warnings still appear. 3. Place entry in Hosts file. --> Same as (2) - no effect. 4. Set IE to "Low" Security Level zone setting --> Can't do it. Corporate Security Policy enforces a minimum "Medium" value, so I can never set it to "Low". This is why I need to spend time figuring out how to write the UnitTest output to a file -- so I can eliminate all these annoying Warnings. I even tried launching ruby with a quiet verbose setting but it had no effect. I have been totally unable to suppress these warnings. In the end I've come to live with them, but I can't help but think that there must be something that can be done in the code to suppress these Warnings. Unfortunately, I'm too focussed on testing and/or solving the scripting problems to figure out how to eliminate these errors. They're annoying but so are mosquitos in the summer time. Oh well. Just thought you should know that the FAQ entry doesn't help me in my situation. Paul. On 02/05/06, Bret Pettichord wrote: > > I've changed this error message to say > "Access Denied, see http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe > " > > Please rephrase this wiki page if you have a better suggestion for the > advice people should get in this situation. > > Bret > > > On 5/2/06, Michael Bolton wrote: > > > > It clearly helps some people. I wonder if the error message could > > include > > the suggestion to add the server to the trusted site? (I'll volunteer > > to > > help with the writing of it.) > > > > ---Michael B. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060502/d0e63235/attachment.html From bret at pettichord.com Wed May 3 01:11:27 2006 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 3 May 2006 00:11:27 -0500 Subject: [Wtr-general] Development Gem Released Message-ID: Updated Development Gem is available for testing. http://wiki.openqa.org/display/WTR/Development+Builds Key features - Simple install of xpath support. Only requires Rexml 3.1.4 (no hand modifications required). - Modal dialog support -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/dad5e627/attachment.html From Christian.Kreutzer at t-systems.com Wed May 3 05:42:30 2006 From: Christian.Kreutzer at t-systems.com (Kreutzer, Christian) Date: Wed, 3 May 2006 11:42:30 +0200 Subject: [Wtr-general] [ANN] RuMBA Message-ID: i was about to ask the same question. with Selenium-RC there is already a tool with support for lots of browsers which can be driven by various scripting/programming languages. Selenium-RC doenst need the server-side implant Bret mentioned in his post anymore since it comes with its own java based reverse proxy. -Christian _____ Von: Bret Pettichord [mailto:bret at pettichord.com] Gesendet: Montag, 1. Mai 2006 21:36 An: wtr-general at rubyforge.org Betreff: Re: [Wtr-general] [ANN] RuMBA On 4/30/06, Paul Rogers > wrote: The DownSide to make this work cross browser, the html must contain the flash object and some javascript. The easy way is to have the server do this for you. If you are using rails, its easy. Other server technologies may be harder to have it work in test and easily switch off for a production environment. The other alternative is to do it client side, using a proxy that alters the HTML that is delivered to the browser. I'm curious why you aren't using Selenium RC? The main drawback to it is that it also requires a server-side implant, but you seem to be willing to do that. On the other hand, it is open source and supports lots of browsers, not just Firefox and IE. I figured a Watir-like Ruby interface to Selenium RC would be easier. Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/cd3b25f3/attachment.html From Adrian.Rutter at tnt.com Wed May 3 06:34:22 2006 From: Adrian.Rutter at tnt.com (Adrian Rutter) Date: Wed, 3 May 2006 11:34:22 +0100 Subject: [Wtr-general] Ruby IDE Message-ID: Hi, I would like to find out what Ruby IDE you are using for your Watir tests. I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. Cheers Aidy --------------------------------------------------------------------------------------------------------------- This message and any attachment are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. If you are not the intended recipient you must not copy this message or attachment or disclose the contents to any other person. --------------------------------------------------------------------------------------------------------------- From zeljko.filipin at gmail.com Wed May 3 06:41:56 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Wed, 3 May 2006 12:41:56 +0200 Subject: [Wtr-general] Ruby IDE In-Reply-To: References: Message-ID: Take a look here: http://www.mail-archive.com/wtr-general at rubyforge.org/msg02244.html Zeljko On 5/3/06, Adrian Rutter wrote: > > > Hi, > > I would like to find out what Ruby IDE you are using for your Watir tests. > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. > > Cheers > > Aidy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/305b2819/attachment.html From zeljko.filipin at gmail.com Wed May 3 07:03:08 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Wed, 3 May 2006 13:03:08 +0200 Subject: [Wtr-general] Ruby IDE In-Reply-To: References: Message-ID: There is beta version of new arachno at http://www.ruby-ide.com/forum/showthread.php?t=179 I remember Lothar said that new version would support Ruby 1.8.3. and higher (but I do not know if this is already implemented). On 5/3/06, Adrian Rutter wrote: > > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/0395a7ea/attachment.html From tester.paul at gmail.com Wed May 3 09:47:09 2006 From: tester.paul at gmail.com (Paul Carvalho) Date: Wed, 3 May 2006 09:47:09 -0400 Subject: [Wtr-general] Ruby IDE In-Reply-To: References: Message-ID: <37c405480605030647u3506dff2gefed18855305b432@mail.gmail.com> I've been using SciTE. Until now I haven't heard of Arachno Ruby.. maybe I'll check it out. Every time I try FreeRIDE it always disappoints me. I tried it again just now - it doesn't like my dual monitor setup (does weird things with the menus), and it hangs for some reason in the middle of my scripts. The scripts run perfectly when I run them from a command line or SciTE, so I blame the hack'ish IDE. A good debugger would certainly be useful. On 03/05/06, Adrian Rutter wrote: > > > Hi, > > I would like to find out what Ruby IDE you are using for your Watir tests. > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. > > Cheers > > Aidy > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/7a75a44b/attachment.html From Bill.Attebery at twtelecom.com Wed May 3 09:46:33 2006 From: Bill.Attebery at twtelecom.com (Attebery, Bill) Date: Wed, 3 May 2006 07:46:33 -0600 Subject: [Wtr-general] Ruby IDE Message-ID: Which versions of Ruby does Watir support -- for some reason I was under the impression it was only 1.8.2 _____ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Zeljko Filipin Sent: Wednesday, May 03, 2006 5:03 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Ruby IDE There is beta version of new arachno at http://www.ruby-ide.com/forum/showthread.php?t=179 I remember Lothar said that new version would support Ruby 1.8.3. and higher (but I do not know if this is already implemented). On 5/3/06, Adrian Rutter wrote: I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. The content contained in this electronic message is not intended to constitute formation of a contract binding TWTC. TWTC will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/7edf146a/attachment.html From Mark_Cain at rl.gov Wed May 3 10:07:47 2006 From: Mark_Cain at rl.gov (Cain, Mark) Date: Wed, 3 May 2006 07:07:47 -0700 Subject: [Wtr-general] Ruby IDE Message-ID: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76DF@EX5V.rl.gov> Komodo is a pretty good IDE and has a good debugger but the personal version cost 30 buck-I have also had some performance problems with this IDE with Watir version 1.5.x. If you want free, try Eclipse with the RDE and the SVN plug-ins. Eclipse is the one I end up using the most. --Mark ________________________________ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Paul Carvalho Sent: Wednesday, May 03, 2006 6:47 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Ruby IDE I've been using SciTE. Until now I haven't heard of Arachno Ruby.. maybe I'll check it out. Every time I try FreeRIDE it always disappoints me. I tried it again just now - it doesn't like my dual monitor setup (does weird things with the menus), and it hangs for some reason in the middle of my scripts. The scripts run perfectly when I run them from a command line or SciTE, so I blame the hack'ish IDE. A good debugger would certainly be useful. On 03/05/06, Adrian Rutter wrote: Hi, I would like to find out what Ruby IDE you are using for your Watir tests. I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. Cheers Aidy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/fc0ba4f6/attachment.html From zeljko.filipin at gmail.com Wed May 3 10:07:17 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Wed, 3 May 2006 16:07:17 +0200 Subject: [Wtr-general] Ruby IDE In-Reply-To: References: Message-ID: I have tried it with 1.8.3. and 1.8.4. and it worked. On 5/3/06, Attebery, Bill wrote: > > Which versions of Ruby does Watir support -- for some reason I was under > the impression it was only 1.8.2 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/160bb882/attachment.html From jeff.darklight at gmail.com Wed May 3 10:07:58 2006 From: jeff.darklight at gmail.com (Jeff Wood) Date: Wed, 3 May 2006 07:07:58 -0700 Subject: [Wtr-general] Ruby IDE In-Reply-To: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76DF@EX5V.rl.gov> References: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76DF@EX5V.rl.gov> Message-ID: There have only been a few times where having a graphical way to dig through a data structure helped any more than simply using Emacs & breakpoint. --jw. On 5/3/06, Cain, Mark wrote: > > > > Komodo is a pretty good IDE and has a good debugger but the personal version > cost 30 buck?I have also had some performance problems with this IDE with > Watir version 1.5.x. If you want free, try Eclipse with the RDE and the SVN > plug-ins. Eclipse is the one I end up using the most. > > > > > > --Mark > > > > ________________________________ > > > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > Paul Carvalho > Sent: Wednesday, May 03, 2006 6:47 AM > > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. maybe > I'll check it out. > > Every time I try FreeRIDE it always disappoints me. I tried it again just > now - it doesn't like my dual monitor setup (does weird things with the > menus), and it hangs for some reason in the middle of my scripts. The > scripts run perfectly when I run them from a command line or SciTE, so I > blame the hack'ish IDE. > > A good debugger would certainly be useful. > > > > > > On 03/05/06, Adrian Rutter wrote: > > > > Hi, > > I would like to find out what Ruby IDE you are using for your Watir tests. > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. > > Cheers > > Aidy > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > From jeff.darklight at gmail.com Wed May 3 10:09:06 2006 From: jeff.darklight at gmail.com (Jeff Wood) Date: Wed, 3 May 2006 07:09:06 -0700 Subject: [Wtr-general] Ruby IDE In-Reply-To: References: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76DF@EX5V.rl.gov> Message-ID: But, I do own both Komodo & Arachno ... Arachno does have the nicest debugger. and Komodo does deal with multiple languages ( especially XML/XSLT ) ... which is nice to have. ... anyways. just brain dumping for y'all. --jw. On 5/3/06, Jeff Wood wrote: > There have only been a few times where having a graphical way to dig > through a data structure helped any more than simply using Emacs & > breakpoint. > > --jw. > > On 5/3/06, Cain, Mark wrote: > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal version > > cost 30 buck?I have also had some performance problems with this IDE with > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and the SVN > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > --Mark > > > > > > > > ________________________________ > > > > > > From: wtr-general-bounces at rubyforge.org > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > Paul Carvalho > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > To: wtr-general at rubyforge.org > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. maybe > > I'll check it out. > > > > Every time I try FreeRIDE it always disappoints me. I tried it again just > > now - it doesn't like my dual monitor setup (does weird things with the > > menus), and it hangs for some reason in the middle of my scripts. The > > scripts run perfectly when I run them from a command line or SciTE, so I > > blame the hack'ish IDE. > > > > A good debugger would certainly be useful. > > > > > > > > > > > > On 03/05/06, Adrian Rutter wrote: > > > > > > > > Hi, > > > > I would like to find out what Ruby IDE you are using for your Watir tests. > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. > > > > Cheers > > > > Aidy > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > From PGarigue at EXTEND.COM Wed May 3 10:27:21 2006 From: PGarigue at EXTEND.COM (Pierre Garigue) Date: Wed, 3 May 2006 10:27:21 -0400 Subject: [Wtr-general] [War-general] Ruby IDE Message-ID: about debugging - PP is your friend. Every time I need to print debug info from inside a program, I use pp rather than puts. I use pretty large data structure and without pp I would be lost. I found this on using Breakpoint http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint . It's from using it in a Rails context but it may be useful cheers Pierre -----Original Message----- From: Jeff Wood [mailto:jeff.darklight at gmail.com] Sent: Wednesday, May 03, 2006 10:08 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Ruby IDE There have only been a few times where having a graphical way to dig through a data structure helped any more than simply using Emacs & breakpoint. --jw. On 5/3/06, Cain, Mark wrote: > > > > Komodo is a pretty good IDE and has a good debugger but the personal version > cost 30 buck?I have also had some performance problems with this IDE with > Watir version 1.5.x. If you want free, try Eclipse with the RDE and the SVN > plug-ins. Eclipse is the one I end up using the most. > > > > > > --Mark > > > > ________________________________ > > > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > Paul Carvalho > Sent: Wednesday, May 03, 2006 6:47 AM > > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. maybe > I'll check it out. > > Every time I try FreeRIDE it always disappoints me. I tried it again just > now - it doesn't like my dual monitor setup (does weird things with the > menus), and it hangs for some reason in the middle of my scripts. The > scripts run perfectly when I run them from a command line or SciTE, so I > blame the hack'ish IDE. > > A good debugger would certainly be useful. > > > > > > On 03/05/06, Adrian Rutter wrote: > > > > Hi, > > I would like to find out what Ruby IDE you are using for your Watir tests. > I downloaded Arachno Ruby, but its debugger only supports upto Ruby 1.8.3. > > Cheers > > Aidy > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From rodrigo.martin at enratio.com Wed May 3 10:33:16 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Wed, 3 May 2006 11:33:16 -0300 Subject: [Wtr-general] Help needed with text_edits and IFRAME Message-ID: Hello Everybody! I have 2 problems, hope some of you guys can give me a hand... 1) I have six input boxes (text_fields), that has the same name. How can I identify them uniquely? I've seen the properties of each text_fields and can't find one for identify them.. The ID changes dinamically... Can I refer them by :index and :name? 2) And... I have an IFRAME (is like an text_area that allows you to write a description). But I don't know how to refer it with watir... With a find tool i have this info about it: Page(url).document.frames.editCtl.document.all.BODY Thanks in advance.. Cheers! Rodrigo Julian Martin. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/8e370e20/attachment.html From bret at pettichord.com Wed May 3 10:48:11 2006 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 3 May 2006 09:48:11 -0500 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: <37c405480605021248j3c46290etc1934a6249b8d497@mail.gmail.com> References: <00c801c66e10$255b4b70$6601a8c0@Koko> <37c405480605021248j3c46290etc1934a6249b8d497@mail.gmail.com> Message-ID: Paul, Thanks for sharing your story. It's a good example for why it is really hard to include solutions in error messages. I did not realize that these warnings were bothering you. It is easy to suppress them. Watir uses a Logger object to do the logging. By default, it set to warn, and this is a warn message. You could provide your own, customized logger to Watir or change the settings on the default one in play. Something like ie.logger.level = Logger::ERROR might work. For details, see http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/index.html Let us know what works for you and we'll add it to the FAQ. Bret On 5/2/06, Paul Carvalho wrote: > > Just for the record, none of the advice in this FAQ entry have helped me > get rid of this error. =( > > I'm not trying to navigate to a frame on another site, but the two outside > (empty) frames are hosted on a separate resource web site. When I check the > frames, I see the following output: > ---- > irb(main):128:0> ie.show_frames > there are 4 frames > > frame index: 1 --Access Denied-- > frame index: 2 name: FooBar > frame index: 3 name: MainWindow > frame index: 4 --Access Denied-- > => 0..3 > ---- > > I get these "Access is Denied" warnings randomly when I click buttons and > follow links in the 'MainWindow' frame. This frame is hosted on the same > site, so I don't know why the warning messages keep appearing. > > I've tried everything in the FAQ but to no avail: > > 1. Navigate directly to the subframe.. > --> Not relevant. I'm not navigating to a different subframe. > > 2. Add host to the Trusted Sites list. > --> Did it. No effect. Warnings still appear. > > 3. Place entry in Hosts file. > --> Same as (2) - no effect. > > 4. Set IE to "Low" Security Level zone setting > --> Can't do it. Corporate Security Policy enforces a minimum "Medium" > value, so I can never set it to "Low". > > This is why I need to spend time figuring out how to write the UnitTest > output to a file -- so I can eliminate all these annoying Warnings. I even > tried launching ruby with a quiet verbose setting but it had no effect. I > have been totally unable to suppress these warnings. > > In the end I've come to live with them, but I can't help but think that > there must be something that can be done in the code to suppress these > Warnings. Unfortunately, I'm too focussed on testing and/or solving the > scripting problems to figure out how to eliminate these errors. They're > annoying but so are mosquitos in the summer time. Oh well. > > Just thought you should know that the FAQ entry doesn't help me in my > situation. > > Paul. > > > > On 02/05/06, Bret Pettichord < bret at pettichord.com> wrote: > > > > I've changed this error message to say > > "Access Denied, see http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe > > " > > > > Please rephrase this wiki page if you have a better suggestion for the > > advice people should get in this situation. > > > > Bret > > > > > > On 5/2/06, Michael Bolton wrote: > > > > > > It clearly helps some people. I wonder if the error message could > > > include > > > the suggestion to add the server to the trusted site? (I'll volunteer > > > to > > > help with the writing of it.) > > > > > > ---Michael B. > > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/dfbc365f/attachment.html From tester.paul at gmail.com Wed May 3 11:28:47 2006 From: tester.paul at gmail.com (Paul Carvalho) Date: Wed, 3 May 2006 11:28:47 -0400 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: References: <00c801c66e10$255b4b70$6601a8c0@Koko> <37c405480605021248j3c46290etc1934a6249b8d497@mail.gmail.com> Message-ID: <37c405480605030828r23d827e9pa2b8f57ee3bf57c4@mail.gmail.com> Hooo-rahh! You can't see it, but there are tears of joy in my eyes! Thank you! That line works perfectly in my scripts. No more warnings. I think that line should be added to the FAQ as well (Step 5 - last resort?). Cheers! Paul. On 03/05/06, Bret Pettichord wrote: > > Paul, > > Thanks for sharing your story. It's a good example for why it is really > hard to include solutions in error messages. > > I did not realize that these warnings were bothering you. It is easy to > suppress them. > > Watir uses a Logger object to do the logging. By default, it set to warn, > and this is a warn message. You could provide your own, customized logger to > Watir or change the settings on the default one in play. > > Something like > ie.logger.level = Logger::ERROR > might work. > > For details, see http://www.ruby-doc.org/stdlib/libdoc/logger/rdoc/index.html > > > Let us know what works for you and we'll add it to the FAQ. > > Bret > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/82973396/attachment.html From zeljko.filipin at gmail.com Wed May 3 11:43:38 2006 From: zeljko.filipin at gmail.com (Zeljko Filipin) Date: Wed, 3 May 2006 17:43:38 +0200 Subject: [Wtr-general] Access Denied with Frames In-Reply-To: <37c405480605030828r23d827e9pa2b8f57ee3bf57c4@mail.gmail.com> References: <00c801c66e10$255b4b70$6601a8c0@Koko> <37c405480605021248j3c46290etc1934a6249b8d497@mail.gmail.com> <37c405480605030828r23d827e9pa2b8f57ee3bf57c4@mail.gmail.com> Message-ID: Try to add it yourself (and put those tears of joy in another pair of eyes) :) On 5/3/06, Paul Carvalho wrote: > > Hooo-rahh! You can't see it, but there are tears of joy in my eyes! > > Thank you! That line works perfectly in my scripts. No more warnings. I > think that line should be added to the FAQ as well (Step 5 - last resort?). > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/aaab8c55/attachment.html From charley.baker at gmail.com Wed May 3 14:18:40 2006 From: charley.baker at gmail.com (Charley Baker) Date: Wed, 3 May 2006 12:18:40 -0600 Subject: [Wtr-general] [War-general] Ruby IDE In-Reply-To: References: Message-ID: I use Eclipse with the RDT Ruby plugin: http://rubyeclipse.sourceforge.net/ I use Eclipse for other languages, have a lot of plugins which make my life simpler and of course it's all free. :) The RDT plugin has support for integrated debugging, code completion, code formatting, syntax coloring, Test::Unit integration, runs IRB as an external tool and all the usual things that come with a decent ide plus with the Subclipse plugin, I get subversion integration. -Charley On 5/3/06, Pierre Garigue wrote: > > about debugging > > - PP is your friend. Every time I need to print debug info from inside a > program, I use pp rather than puts. I use pretty large data structure and > without pp I would be lost. > > I found this on using Breakpoint > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint . It's > from > using it in a Rails context but it may be useful > > > cheers > Pierre > > -----Original Message----- > From: Jeff Wood [mailto:jeff.darklight at gmail.com] > Sent: Wednesday, May 03, 2006 10:08 AM > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] Ruby IDE > > > There have only been a few times where having a graphical way to dig > through a data structure helped any more than simply using Emacs & > breakpoint. > > --jw. > > On 5/3/06, Cain, Mark wrote: > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal > version > > cost 30 buck?I have also had some performance problems with this IDE > with > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and the > SVN > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > --Mark > > > > > > > > ________________________________ > > > > > > From: wtr-general-bounces at rubyforge.org > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > Paul Carvalho > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > To: wtr-general at rubyforge.org > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. > maybe > > I'll check it out. > > > > Every time I try FreeRIDE it always disappoints me. I tried it again > just > > now - it doesn't like my dual monitor setup (does weird things with the > > menus), and it hangs for some reason in the middle of my scripts. The > > scripts run perfectly when I run them from a command line or SciTE, so I > > blame the hack'ish IDE. > > > > A good debugger would certainly be useful. > > > > > > > > > > > > On 03/05/06, Adrian Rutter wrote: > > > > > > > > Hi, > > > > I would like to find out what Ruby IDE you are using for your Watir > tests. > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby > 1.8.3. > > > > Cheers > > > > Aidy > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060503/ead70dc1/attachment.html From christopher.mcmahon at gmail.com Wed May 3 14:44:55 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Wed, 3 May 2006 11:44:55 -0700 Subject: [Wtr-general] anyone ever hacked Watir to do Basic Authentication? Message-ID: <72799cd70605031144m22d4ba7fqff5d3aa05ef18a21@mail.gmail.com> So using net/http, I can do: my_id = 'user' my_pwd = 'password' auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) url = '/' site = 'server' port = 80 req = Net::HTTP.new( site, port ) req.get( url, 'Authorization' => auth ) do |r| puts r end Has anyone ever considered having Watir do my_id = 'user' my_pwd = 'password' auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) ie = IE.new ie.goto("http://server").auth It seems like it ought to be possible, and it'd save 99% of the WinClicker ugliness. -Chris From christopher.mcmahon at gmail.com Wed May 3 16:01:05 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Wed, 3 May 2006 13:01:05 -0700 Subject: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? Message-ID: <72799cd70605031301x3d763eabh10af58ced3aa88a2@mail.gmail.com> Check this out, I've hacked watir's goto() method: def goto(url) #@ie.navigate(url) @ie.navigate(url,nil,nil,nil,"Authorization: Basic AbdXyz46bG1ubw==\n") wait() sleep 0.2 return @down_load_time end and it works!! The only problem is that it works only for the very first transaction. I'm now getting auth popups for inline images and things. Under normal circumstances, the browser, having passed basic authentication credentials once to this site would know to always pass those credentials to that site for every subsequent GET/POST/whatever. Anyone have any ideas about how to make that happen through hacking on Watir directly? -Chris On 5/3/06, Chris McMahon wrote: > So using net/http, I can do: > > my_id = 'user' > my_pwd = 'password' > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > url = '/' > site = 'server' > port = 80 > > req = Net::HTTP.new( site, port ) > req.get( url, 'Authorization' => auth ) do |r| > puts r > end > > Has anyone ever considered having Watir do > > my_id = 'user' > my_pwd = 'password' > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > ie = IE.new > ie.goto("http://server").auth > > It seems like it ought to be possible, and it'd save 99% of the > WinClicker ugliness. > > -Chris > From christopher.mcmahon at gmail.com Wed May 3 18:24:26 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Wed, 3 May 2006 15:24:26 -0700 Subject: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? In-Reply-To: <72799cd70605031301x3d763eabh10af58ced3aa88a2@mail.gmail.com> References: <72799cd70605031301x3d763eabh10af58ced3aa88a2@mail.gmail.com> Message-ID: <72799cd70605031524y157a4b21sd4d5a82d20b4dcfc@mail.gmail.com> Finally, seems like my problem is just for frames. In fact, it seems exactly like this problem: http://www.talkaboutsoftware.com/group/microsoft.public.inetsdk.programming.webbrowser_ctl/messages/17461.html I've also tried navigating directly to the frame in question first, then to the main page, but it doesn't help, the browser still won't use auth credentials to request the frame. On 5/3/06, Chris McMahon wrote: > Check this out, I've hacked watir's goto() method: > > def goto(url) > #@ie.navigate(url) > @ie.navigate(url,nil,nil,nil,"Authorization: Basic > AbdXyz46bG1ubw==\n") > wait() > sleep 0.2 > return @down_load_time > end > > and it works!! > > The only problem is that it works only for the very first transaction. > I'm now getting auth popups for inline images and things. > > Under normal circumstances, the browser, having passed basic > authentication credentials once to this site would know to always pass > those credentials to that site for every subsequent GET/POST/whatever. > Anyone have any ideas about how to make that happen through hacking > on Watir directly? > > -Chris > > > On 5/3/06, Chris McMahon wrote: > > So using net/http, I can do: > > > > my_id = 'user' > > my_pwd = 'password' > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > url = '/' > > site = 'server' > > port = 80 > > > > req = Net::HTTP.new( site, port ) > > req.get( url, 'Authorization' => auth ) do |r| > > puts r > > end > > > > Has anyone ever considered having Watir do > > > > my_id = 'user' > > my_pwd = 'password' > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > ie = IE.new > > ie.goto("http://server").auth > > > > It seems like it ought to be possible, and it'd save 99% of the > > WinClicker ugliness. > > > > -Chris > > > From r.chandan at gmail.com Thu May 4 01:16:41 2006 From: r.chandan at gmail.com (Chandan R) Date: Thu, 4 May 2006 10:46:41 +0530 Subject: [Wtr-general] [War-general] Ruby IDE In-Reply-To: References: Message-ID: <9f72bbb40605032216p4ac0fc6as986ce876227ac3cf@mail.gmail.com> Hi, I have installed the ruby plugin for eclipse. But on clicking any of the options provided by this plugin in eclipse, i get a error message which says -- "An error has occured see error log for more details". Where can i find the error log? Has anyone faced similar problems? Eclipse version i am using - 3.0.0 Ruby Development Tools plugin version - 0.7.0.601192300PRD Thanks in advance, Chandan R On 5/3/06, Charley Baker wrote: > > I use Eclipse with the RDT Ruby plugin: > http://rubyeclipse.sourceforge.net/ I use Eclipse for other languages, > have a lot of plugins which make my life simpler and of course it's all > free. :) The RDT plugin has support for integrated debugging, code > completion, code formatting, syntax coloring, Test::Unit integration, runs > IRB as an external tool and all the usual things that come with a decent ide > plus with the Subclipse plugin, I get subversion integration. > > -Charley > > > On 5/3/06, Pierre Garigue wrote: > > > > about debugging > > > > - PP is your friend. Every time I need to print debug info from inside a > > program, I use pp rather than puts. I use pretty large data structure and > > without pp I would be lost. > > > > I found this on using Breakpoint > > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint . It's > > from > > using it in a Rails context but it may be useful > > > > > > cheers > > Pierre > > > > -----Original Message----- > > From: Jeff Wood [mailto:jeff.darklight at gmail.com] > > Sent: Wednesday, May 03, 2006 10:08 AM > > To: wtr-general at rubyforge.org > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > There have only been a few times where having a graphical way to dig > > through a data structure helped any more than simply using Emacs & > > breakpoint. > > > > --jw. > > > > On 5/3/06, Cain, Mark wrote: > > > > > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal > > version > > > cost 30 buck?I have also had some performance problems with this IDE > > with > > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and > > the SVN > > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > > > > > > > --Mark > > > > > > > > > > > > ________________________________ > > > > > > > > > From: wtr-general-bounces at rubyforge.org > > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > > Paul Carvalho > > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > > > To: wtr-general at rubyforge.org > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. > > maybe > > > I'll check it out. > > > > > > Every time I try FreeRIDE it always disappoints me. I tried it again > > just > > > now - it doesn't like my dual monitor setup (does weird things with > > the > > > menus), and it hangs for some reason in the middle of my scripts. The > > > > > scripts run perfectly when I run them from a command line or SciTE, so > > I > > > blame the hack'ish IDE. > > > > > > A good debugger would certainly be useful. > > > > > > > > > > > > > > > > > > On 03/05/06, Adrian Rutter < Adrian.Rutter at tnt.com> wrote: > > > > > > > > > > > > Hi, > > > > > > I would like to find out what Ruby IDE you are using for your Watir > > tests. > > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby > > 1.8.3. > > > > > > Cheers > > > > > > Aidy > > > > > > > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -- Chandan R http://chandanr.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060504/f2212301/attachment.html From jeff.darklight at gmail.com Thu May 4 01:59:32 2006 From: jeff.darklight at gmail.com (Jeff Wood) Date: Wed, 3 May 2006 22:59:32 -0700 Subject: [Wtr-general] [War-general] Ruby IDE In-Reply-To: <9f72bbb40605032216p4ac0fc6as986ce876227ac3cf@mail.gmail.com> References: <9f72bbb40605032216p4ac0fc6as986ce876227ac3cf@mail.gmail.com> Message-ID: I believe that version 0.7 of the RDT is intended for a newer version of Eclipse. --jw. On 5/3/06, Chandan R wrote: > Hi, > I have installed the ruby plugin for eclipse. But on clicking any of the > options provided by this plugin in eclipse, i get a error message which says > -- "An error has occured see error log for more details". Where can i find > the error log? Has anyone faced similar problems? > > Eclipse version i am using - 3.0.0 > Ruby Development Tools plugin version - 0.7.0.601192300PRD > > Thanks in advance, > Chandan R > > > On 5/3/06, Charley Baker wrote: > > > > I use Eclipse with the RDT Ruby plugin: > http://rubyeclipse.sourceforge.net/ I use Eclipse for > other languages, have a lot of plugins which make my life simpler and of > course it's all free. :) The RDT plugin has support for integrated > debugging, code completion, code formatting, syntax coloring, Test::Unit > integration, runs IRB as an external tool and all the usual things that come > with a decent ide plus with the Subclipse plugin, I get subversion > integration. > > > > > > -Charley > > > > > > > > On 5/3/06, Pierre Garigue wrote: > > > about debugging > > > > > > - PP is your friend. Every time I need to print debug info from inside a > program, I use pp rather than puts. I use pretty large data structure and > without pp I would be lost. > > > > > > I found this on using Breakpoint > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint > . It's from > > > using it in a Rails context but it may be useful > > > > > > > > > cheers > > > Pierre > > > > > > -----Original Message----- > > > From: Jeff Wood [mailto:jeff.darklight at gmail.com] > > > Sent: Wednesday, May 03, 2006 10:08 AM > > > To: wtr-general at rubyforge.org > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > There have only been a few times where having a graphical way to dig > > > through a data structure helped any more than simply using Emacs & > > > breakpoint. > > > > > > --jw. > > > > > > On 5/3/06, Cain, Mark wrote: > > > > > > > > > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal > version > > > > cost 30 buck?I have also had some performance problems with this IDE > with > > > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and > the SVN > > > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > > > > > > > > > > > > > --Mark > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > From: wtr-general-bounces at rubyforge.org > > > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf > Of > > > > Paul Carvalho > > > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > > > > > To: wtr-general at rubyforge.org > > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. > maybe > > > > I'll check it out. > > > > > > > > Every time I try FreeRIDE it always disappoints me. I tried it again > just > > > > now - it doesn't like my dual monitor setup (does weird things with > the > > > > menus), and it hangs for some reason in the middle of my scripts. The > > > > scripts run perfectly when I run them from a command line or SciTE, so > I > > > > blame the hack'ish IDE. > > > > > > > > A good debugger would certainly be useful. > > > > > > > > > > > > > > > > > > > > > > > > On 03/05/06, Adrian Rutter < Adrian.Rutter at tnt.com> wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > I would like to find out what Ruby IDE you are using for your Watir > tests. > > > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby > 1.8.3. > > > > > > > > Cheers > > > > > > > > Aidy > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Wtr-general mailing list > > > > Wtr-general at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > -- > Chandan R > http://chandanr.blogspot.com > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > From silver_altima at yahoo.com Thu May 4 09:23:24 2006 From: silver_altima at yahoo.com (silver_altima at yahoo.com) Date: Thu, 4 May 2006 06:23:24 -0700 (PDT) Subject: [Wtr-general] Newbie - Unable to click link in a table Message-ID: <20060504132324.87093.qmail@web53202.mail.yahoo.com> Hi, using Ruby to automate my IE testing. On this particular page, I have a table that is displayed after a check box is selected\set. (there are other tables on the page, but not important for my testing) The first column of this table are all links. (all the links are the word "select") The first row is just titles. I wish to access the second row, 1st column and click on the link. This does not work: ie.table(:name, 'tableName')[2][1].link(:text,'Select').click This does not work either: ie.table(:index, 3)[2][1].click I know I am using the right table names, etc. I also did a showAllObjects...but the table names are not listed there??? not quite sure why... What else can I use to view all tables on the page? Also, perhaps the code is being regenerated after the check box is clicked...is there a way to reload the code without refreshing the page itself??? Any help would be MOST appreciated !! Thanks in advance...Lemme know if I can provide more info if I missed anything... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Mark_Cain at rl.gov Thu May 4 09:40:55 2006 From: Mark_Cain at rl.gov (Cain, Mark) Date: Thu, 4 May 2006 06:40:55 -0700 Subject: [Wtr-general] [War-general] Ruby IDE Message-ID: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76E1@EX5V.rl.gov> Yes Eclipse is 3.1 and RDT is 0.8 --Mark -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Jeff Wood Sent: Wednesday, May 03, 2006 11:00 PM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [War-general] Ruby IDE I believe that version 0.7 of the RDT is intended for a newer version of Eclipse. --jw. On 5/3/06, Chandan R wrote: > Hi, > I have installed the ruby plugin for eclipse. But on clicking any of the > options provided by this plugin in eclipse, i get a error message which says > -- "An error has occured see error log for more details". Where can i find > the error log? Has anyone faced similar problems? > > Eclipse version i am using - 3.0.0 > Ruby Development Tools plugin version - 0.7.0.601192300PRD > > Thanks in advance, > Chandan R > > > On 5/3/06, Charley Baker wrote: > > > > I use Eclipse with the RDT Ruby plugin: > http://rubyeclipse.sourceforge.net/ I use Eclipse for > other languages, have a lot of plugins which make my life simpler and of > course it's all free. :) The RDT plugin has support for integrated > debugging, code completion, code formatting, syntax coloring, Test::Unit > integration, runs IRB as an external tool and all the usual things that come > with a decent ide plus with the Subclipse plugin, I get subversion > integration. > > > > > > -Charley > > > > > > > > On 5/3/06, Pierre Garigue wrote: > > > about debugging > > > > > > - PP is your friend. Every time I need to print debug info from inside a > program, I use pp rather than puts. I use pretty large data structure and > without pp I would be lost. > > > > > > I found this on using Breakpoint > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint > . It's from > > > using it in a Rails context but it may be useful > > > > > > > > > cheers > > > Pierre > > > > > > -----Original Message----- > > > From: Jeff Wood [mailto:jeff.darklight at gmail.com] > > > Sent: Wednesday, May 03, 2006 10:08 AM > > > To: wtr-general at rubyforge.org > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > There have only been a few times where having a graphical way to dig > > > through a data structure helped any more than simply using Emacs & > > > breakpoint. > > > > > > --jw. > > > > > > On 5/3/06, Cain, Mark wrote: > > > > > > > > > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal > version > > > > cost 30 buck-I have also had some performance problems with this IDE > with > > > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and > the SVN > > > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > > > > > > > > > > > > > --Mark > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > From: wtr-general-bounces at rubyforge.org > > > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf > Of > > > > Paul Carvalho > > > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > > > > > To: wtr-general at rubyforge.org > > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. > maybe > > > > I'll check it out. > > > > > > > > Every time I try FreeRIDE it always disappoints me. I tried it again > just > > > > now - it doesn't like my dual monitor setup (does weird things with > the > > > > menus), and it hangs for some reason in the middle of my scripts. The > > > > scripts run perfectly when I run them from a command line or SciTE, so > I > > > > blame the hack'ish IDE. > > > > > > > > A good debugger would certainly be useful. > > > > > > > > > > > > > > > > > > > > > > > > On 03/05/06, Adrian Rutter < Adrian.Rutter at tnt.com> wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > I would like to find out what Ruby IDE you are using for your Watir > tests. > > > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby > 1.8.3. > > > > > > > > Cheers > > > > > > > > Aidy > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Wtr-general mailing list > > > > Wtr-general at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > -- > Chandan R > http://chandanr.blogspot.com > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From Mark_Cain at rl.gov Thu May 4 09:57:18 2006 From: Mark_Cain at rl.gov (Cain, Mark) Date: Thu, 4 May 2006 06:57:18 -0700 Subject: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? Message-ID: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76E2@EX5V.rl.gov> The guy in your linked article is trying to automate Mozilla using the IE Object. That is probably most of His problem since they use completely different DOMs. Did you try adjusting your IE security settings? In IE select Tools >> Internet Options. Click the Security tab. Click the Custom Level button and scroll to the very bottom of the setting dialog. The User Authentication section gives you some IE options for logging in. If you choose the second option, make sure your site is listed in the 'Intranet Zone'. --Mark -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Chris McMahon Sent: Wednesday, May 03, 2006 3:24 PM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] hacked goto() almost working,any ideas? Re: anyone ever hacked Watir to do Basic Authentication? Finally, seems like my problem is just for frames. In fact, it seems exactly like this problem: http://www.talkaboutsoftware.com/group/microsoft.public.inetsdk.programm ing.webbrowser_ctl/messages/17461.html I've also tried navigating directly to the frame in question first, then to the main page, but it doesn't help, the browser still won't use auth credentials to request the frame. On 5/3/06, Chris McMahon wrote: > Check this out, I've hacked watir's goto() method: > > def goto(url) > #@ie.navigate(url) > @ie.navigate(url,nil,nil,nil,"Authorization: Basic > AbdXyz46bG1ubw==\n") > wait() > sleep 0.2 > return @down_load_time > end > > and it works!! > > The only problem is that it works only for the very first transaction. > I'm now getting auth popups for inline images and things. > > Under normal circumstances, the browser, having passed basic > authentication credentials once to this site would know to always pass > those credentials to that site for every subsequent GET/POST/whatever. > Anyone have any ideas about how to make that happen through hacking > on Watir directly? > > -Chris > > > On 5/3/06, Chris McMahon wrote: > > So using net/http, I can do: > > > > my_id = 'user' > > my_pwd = 'password' > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > url = '/' > > site = 'server' > > port = 80 > > > > req = Net::HTTP.new( site, port ) > > req.get( url, 'Authorization' => auth ) do |r| > > puts r > > end > > > > Has anyone ever considered having Watir do > > > > my_id = 'user' > > my_pwd = 'password' > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > ie = IE.new > > ie.goto("http://server").auth > > > > It seems like it ought to be possible, and it'd save 99% of the > > WinClicker ugliness. > > > > -Chris > > > _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From charley.baker at gmail.com Thu May 4 09:56:28 2006 From: charley.baker at gmail.com (Charley Baker) Date: Thu, 4 May 2006 07:56:28 -0600 Subject: [Wtr-general] [War-general] Ruby IDE In-Reply-To: <9f72bbb40605032216p4ac0fc6as986ce876227ac3cf@mail.gmail.com> References: <9f72bbb40605032216p4ac0fc6as986ce876227ac3cf@mail.gmail.com> Message-ID: Most likely some versioning incompatibility. I saw the same thing once. The logs exist in the .metadata directory, which lives in your project directory. I'm using Eclipse 3.1.1, was using the same plugin version for RDT which worked well, updated it to 0.8.0.604272100PRD a day or two ago. If you can upgrade Eclipse, possibly even a minor 3.0.x upgrade if you can't move to 3.1.x, that might fix the problem. For the latest 0.8.x plugin it looks like they're supporting only Eclipse 3.1.x, the 0.7.x plugin you've installed should be compatible with Eclipse 3.0.x. Hope that helps. -Charley On 5/3/06, Chandan R wrote: > > Hi, > I have installed the ruby plugin for eclipse. But on clicking any of the > options provided by this plugin in eclipse, i get a error message which says > -- "An error has occured see error log for more details". Where can i find > the error log? Has anyone faced similar problems? > > Eclipse version i am using - 3.0.0 > Ruby Development Tools plugin version - 0.7.0.601192300PRD > > Thanks in advance, > Chandan R > > On 5/3/06, Charley Baker wrote: > > > > I use Eclipse with the RDT Ruby plugin: http://rubyeclipse.sourceforge.net/ > > I use Eclipse for other languages, have a lot of plugins which make > > my life simpler and of course it's all free. :) The RDT plugin has support > > for integrated debugging, code completion, code formatting, syntax coloring, > > Test::Unit integration, runs IRB as an external tool and all the usual > > things that come with a decent ide plus with the Subclipse plugin, I get > > subversion integration. > > > > -Charley > > > > > > On 5/3/06, Pierre Garigue wrote: > > > > > > about debugging > > > > > > - PP is your friend. Every time I need to print debug info from inside > > > a program, I use pp rather than puts. I use pretty large data structure and > > > without pp I would be lost. > > > > > > I found this on using Breakpoint > > > http://wiki.rubyonrails.com/rails/pages/HowtoDebugWithBreakpoint . > > > It's from > > > using it in a Rails context but it may be useful > > > > > > > > > cheers > > > Pierre > > > > > > -----Original Message----- > > > From: Jeff Wood [mailto:jeff.darklight at gmail.com] > > > Sent: Wednesday, May 03, 2006 10:08 AM > > > To: wtr-general at rubyforge.org > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > There have only been a few times where having a graphical way to dig > > > through a data structure helped any more than simply using Emacs & > > > breakpoint. > > > > > > --jw. > > > > > > On 5/3/06, Cain, Mark wrote: > > > > > > > > > > > > > > > > Komodo is a pretty good IDE and has a good debugger but the personal > > > version > > > > cost 30 buck?I have also had some performance problems with this IDE > > > with > > > > Watir version 1.5.x. If you want free, try Eclipse with the RDE and > > > the SVN > > > > plug-ins. Eclipse is the one I end up using the most. > > > > > > > > > > > > > > > > > > > > > > > > --Mark > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > > > > > From: wtr-general-bounces at rubyforge.org > > > > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of > > > > Paul Carvalho > > > > Sent: Wednesday, May 03, 2006 6:47 AM > > > > > > > > To: wtr-general at rubyforge.org > > > > Subject: Re: [Wtr-general] Ruby IDE > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've been using SciTE. Until now I haven't heard of Arachno Ruby.. > > > maybe > > > > I'll check it out. > > > > > > > > Every time I try FreeRIDE it always disappoints me. I tried it > > > again just > > > > now - it doesn't like my dual monitor setup (does weird things with > > > the > > > > menus), and it hangs for some reason in the middle of my > > > scripts. The > > > > scripts run perfectly when I run them from a command line or SciTE, > > > so I > > > > blame the hack'ish IDE. > > > > > > > > A good debugger would certainly be useful. > > > > > > > > > > > > > > > > > > > > > > > > On 03/05/06, Adrian Rutter < Adrian.Rutter at tnt.com> wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > I would like to find out what Ruby IDE you are using for your Watir > > > tests. > > > > I downloaded Arachno Ruby, but its debugger only supports upto Ruby > > > 1.8.3. > > > > > > > > Cheers > > > > > > > > Aidy > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Wtr-general mailing list > > > > Wtr-general at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > > Wtr-general mailing list > > > Wtr-general at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > > > -- > Chandan R > http://chandanr.blogspot.com > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060504/e8ae8595/attachment.html From Bill.Attebery at twtelecom.com Thu May 4 09:47:48 2006 From: Bill.Attebery at twtelecom.com (Attebery, Bill) Date: Thu, 4 May 2006 07:47:48 -0600 Subject: [Wtr-general] Newbie - Unable to click link in a table Message-ID: I had a similar case I think with a large set of small tables that made up the page and menus using javascript. I found the tables using: ie.show_tables I then identified the ones of interest using the flash method -- so in your case: ie.table(:index, 3)[2][1].flash To trigger the even I used fireEvent("onClick") like so: ie.table(:index, 3)[2][1].fireEvent("onClick") Also, if yours are links and are static -- you may be able to use ie.show_links Use flash to identify the index of the link in question: ie.link(:index, 3).flash and get to it through it's index: ie.link(:index, 3).click Hope that helps. -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of silver_altima at yahoo.com Sent: Thursday, May 04, 2006 7:23 AM To: wtr-general at rubyforge.org Subject: [Wtr-general] Newbie - Unable to click link in a table Hi, using Ruby to automate my IE testing. On this particular page, I have a table that is displayed after a check box is selected\set. (there are other tables on the page, but not important for my testing) The first column of this table are all links. (all the links are the word "select") The first row is just titles. I wish to access the second row, 1st column and click on the link. This does not work: ie.table(:name, 'tableName')[2][1].link(:text,'Select').click This does not work either: ie.table(:index, 3)[2][1].click I know I am using the right table names, etc. I also did a showAllObjects...but the table names are not listed there??? not quite sure why... What else can I use to view all tables on the page? Also, perhaps the code is being regenerated after the check box is clicked...is there a way to reload the code without refreshing the page itself??? Any help would be MOST appreciated !! Thanks in advance...Lemme know if I can provide more info if I missed anything... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general The content contained in this electronic message is not intended to constitute formation of a contract binding TWTC. TWTC will be contractually bound only upon execution, by an authorized officer, of a contract including agreed terms and conditions or by express application of its tariffs. This message is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the sender of this E-Mail or by telephone. From silver_altima at yahoo.com Thu May 4 10:14:11 2006 From: silver_altima at yahoo.com (silver_altima at yahoo.com) Date: Thu, 4 May 2006 07:14:11 -0700 (PDT) Subject: [Wtr-general] Newbie - Unable to click link in a table In-Reply-To: Message-ID: <20060504141411.5742.qmail@web53203.mail.yahoo.com> That did help !! It works !!! Thanks very much... --- "Attebery, Bill" wrote: > > I had a similar case I think with a large set of > small tables that made > up the page and menus using javascript. > > I found the tables using: > ie.show_tables > > I then identified the ones of interest using the > flash method -- so in > your case: > ie.table(:index, 3)[2][1].flash > > To trigger the even I used fireEvent("onClick") like > so: > ie.table(:index, 3)[2][1].fireEvent("onClick") > > Also, if yours are links and are static -- you may > be able to use > ie.show_links > > Use flash to identify the index of the link in > question: > ie.link(:index, 3).flash > > and get to it through it's index: > ie.link(:index, 3).click > > > Hope that helps. > > > > > -----Original Message----- > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf > Of > silver_altima at yahoo.com > Sent: Thursday, May 04, 2006 7:23 AM > To: wtr-general at rubyforge.org > Subject: [Wtr-general] Newbie - Unable to click link > in a table > > > Hi, > > using Ruby to automate my IE testing. > > On this particular page, I have a table that is > displayed after a check > box is selected\set. (there are other tables on the > page, but not > important for my > testing) > > The first column of this table are all links. (all > the links are the > word "select") The first row is just titles. I wish > to access the second > row, 1st column and click on the link. > > This does not work: > ie.table(:name, > 'tableName')[2][1].link(:text,'Select').click > > This does not work either: > ie.table(:index, 3)[2][1].click > > I know I am using the right table names, etc. > I also did a showAllObjects...but the table names > are not listed > there??? not quite sure why... > What else can I use to view all tables on the page? > > Also, perhaps the code is being regenerated after > the check box is > clicked...is there a way to reload the code without > refreshing the page > itself??? > > Any help would be MOST appreciated !! > > Thanks in advance...Lemme know if I can provide more > info if I missed > anything... > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > > > The content contained in this electronic message is > not intended to > constitute formation of a contract binding TWTC. > TWTC will be > contractually bound only upon execution, by an > authorized officer, of > a contract including agreed terms and conditions or > by express > application of its tariffs. > > This message is intended only for the use of the > individual or entity > to which it is addressed. If the reader of this > message is not the > intended recipient, or the employee or agent > responsible for > delivering the message to the intended recipient, > you are hereby > notified that any dissemination, distribution or > copying of this > message is strictly prohibited. If you have received > this > communication in error, please notify us immediately > by replying to > the sender of this E-Mail or by telephone. > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From paul.rogers at shaw.ca Thu May 4 13:39:06 2006 From: paul.rogers at shaw.ca (Paul Rogers) Date: Thu, 04 May 2006 11:39:06 -0600 Subject: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? In-Reply-To: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76E2@EX5V.rl.gov> References: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76E2@EX5V.rl.gov> Message-ID: isnt there a method in the winclickers to get rid of the security box? ----- Original Message ----- From: "Cain, Mark" Date: Thursday, May 4, 2006 7:57 am Subject: Re: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? > The guy in your linked article is trying to automate Mozilla using the > IE Object. That is probably most of His problem since they use > completely different DOMs. > > Did you try adjusting your IE security settings? In IE select > Tools >> > Internet Options. Click the Security tab. Click the Custom Level > button and scroll to the very bottom of the setting dialog. The User > Authentication section gives you some IE options for logging in. > If you > choose the second option, make sure your site is listed in the > 'IntranetZone'. > > --Mark > > > -----Original Message----- > From: wtr-general-bounces at rubyforge.org > [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Chris McMahon > Sent: Wednesday, May 03, 2006 3:24 PM > To: wtr-general at rubyforge.org > Subject: Re: [Wtr-general] hacked goto() almost working,any ideas? Re: > anyone ever hacked Watir to do Basic Authentication? > > Finally, seems like my problem is just for frames. In fact, it seems > exactly like this problem: > > http://www.talkaboutsoftware.com/group/microsoft.public.inetsdk.programm > ing.webbrowser_ctl/messages/17461.html > > I've also tried navigating directly to the frame in question first, > then to the main page, but it doesn't help, the browser still won't > use auth credentials to request the frame. > > > On 5/3/06, Chris McMahon wrote: > > Check this out, I've hacked watir's goto() method: > > > > def goto(url) > > #@ie.navigate(url) > > @ie.navigate(url,nil,nil,nil,"Authorization: Basic > > AbdXyz46bG1ubw==\n") > > wait() > > sleep 0.2 > > return @down_load_time > > end > > > > and it works!! > > > > The only problem is that it works only for the very first > transaction.> I'm now getting auth popups for inline images and > things.> > > Under normal circumstances, the browser, having passed basic > > authentication credentials once to this site would know to > always pass > > those credentials to that site for every subsequent > GET/POST/whatever.> Anyone have any ideas about how to make that > happen through hacking > > on Watir directly? > > > > -Chris > > > > > > On 5/3/06, Chris McMahon wrote: > > > So using net/http, I can do: > > > > > > my_id = 'user' > > > my_pwd = 'password' > > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > > > url = '/' > > > site = 'server' > > > port = 80 > > > > > > req = Net::HTTP.new( site, port ) > > > req.get( url, 'Authorization' => auth ) do |r| > > > puts r > > > end > > > > > > Has anyone ever considered having Watir do > > > > > > my_id = 'user' > > > my_pwd = 'password' > > > auth = "Basic " + Base64.encode64( "#{my_id}:#{my_pwd}" ) > > > > > > ie = IE.new > > > ie.goto("http://server").auth > > > > > > It seems like it ought to be possible, and it'd save 99% of the > > > WinClicker ugliness. > > > > > > -Chris > > > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From paul.rogers at shaw.ca Thu May 4 13:41:15 2006 From: paul.rogers at shaw.ca (Paul Rogers) Date: Thu, 04 May 2006 11:41:15 -0600 Subject: [Wtr-general] rumba Message-ID: Thanks to everyone who replied regarding rumba. Apologies for not getting back sooner, but Ive had a busy week. Id forgotten about the ruby runner for selenium, so I think I will take another look at that before I do much more with rumba. I have set up the rubyforge project, but havent got a mailing list working as yet. I'll post again when I do. Paul From christopher.mcmahon at gmail.com Thu May 4 13:56:18 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Thu, 4 May 2006 10:56:18 -0700 Subject: [Wtr-general] hacked goto() almost working, any ideas? Re: anyone ever hacked Watir to do Basic Authentication? In-Reply-To: References: <9C0BD1E3DAF1204D842D72E2DCE2A04E020F76E2@EX5V.rl.gov> Message-ID: <72799cd70605041056x6b1236e2r306417b1387b1253@mail.gmail.com> On 5/4/06, Paul Rogers wrote: > isnt there a method in the winclickers to get rid of the security box? I don't want to use winclickers. I'm contrary. :) -Chris From George.Flaherty at sas.com Thu May 4 16:42:08 2006 From: George.Flaherty at sas.com (George Flaherty) Date: Thu, 4 May 2006 16:42:08 -0400 Subject: [Wtr-general] Order of execution for ruby tests with test/unit Message-ID: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> Sorry to repeat here, but did someone post a way to execute ruby unit tests in a "predetermined order" vs. the default "random" order? Thanks -george From jeff.darklight at gmail.com Thu May 4 19:54:29 2006 From: jeff.darklight at gmail.com (Jeff Wood) Date: Thu, 4 May 2006 16:54:29 -0700 Subject: [Wtr-general] Order of execution for ruby tests with test/unit In-Reply-To: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> References: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> Message-ID: Unit tests are all meant to be atomic, and without order... There is not a way to order their execution. You would have to write your own TestSuite class that would let you order them by some means ... ( basically you would need ot override Test::Unit::TestSuite#run ) --jw. On 5/4/06, George Flaherty wrote: > Sorry to repeat here, but did someone post a way to execute ruby unit tests in a "predetermined order" vs. > the default "random" order? > > > Thanks > -george > > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From paul.rogers at shaw.ca Thu May 4 23:18:38 2006 From: paul.rogers at shaw.ca (Paul Rogers) Date: Thu, 04 May 2006 21:18:38 -0600 Subject: [Wtr-general] Order of execution for ruby tests with test/unit In-Reply-To: References: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> Message-ID: some time ago, maybe August, I posted some code that would do the test in source code order, it created the TestSuite by reading the file first. You can also name your methods like test_010 test_020 etc if you use rspec ( rspec.rubyforge.org ) it runs in source order, and provides a very nice way or organizing specifications ( specs are like tests ) Paul ----- Original Message ----- From: Jeff Wood Date: Thursday, May 4, 2006 5:54 pm Subject: Re: [Wtr-general] Order of execution for ruby tests with test/unit > Unit tests are all meant to be atomic, and without order... > > There is not a way to order their execution. You would have to write > your own TestSuite class that would let you order them by some means > ... > > ( basically you would need ot override Test::Unit::TestSuite#run ) > > --jw. > > On 5/4/06, George Flaherty wrote: > > Sorry to repeat here, but did someone post a way to execute ruby > unit tests in a "predetermined order" vs. > > the default "random" order? > > > > > > Thanks > > -george > > > > > > > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > From tester.paul at gmail.com Thu May 4 23:36:07 2006 From: tester.paul at gmail.com (Paul Carvalho) Date: Thu, 4 May 2006 23:36:07 -0400 Subject: [Wtr-general] Order of execution for ruby tests with test/unit In-Reply-To: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> References: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> Message-ID: <37c405480605042036s443dc8beg1c0fb2cd5c80a3e0@mail.gmail.com> Hi George, it's been my experience that the unit tests run in what appears to be an alphanumerically-ascending order. It's been a while since I've looked at it, but I think this is the general pattern. (This is all off the top of my head, but I'm sure I can easily confirm it. I still have the scripts lying around somewhere that gave me this info.) This might be academic to some but it was enlightening to me so I thought I'd share it since you asked. (BTW, please forgive me for not using correct Test case/suite/whatever terminology here.. I don't have my Ruby/Watir references handy as I type this.) Let's say that you have a master script that calls 3 other scripts that have the test classes in them.. something like: --- # Setup require 'watir' require 'test/unit' # Set up common methods, variables, whatever # My Tests require Startup.rb require HomePage.rb require ShutDown.rb --- The imaginary contents of ' Startup.rb' could be something like: --- class Test_Startup < Test::Unit::TestCase ie = Watir::IE... puts 'This is the start' def test_navigation ie.goto(..) ie.blah.blah assert_equal(yadda, yadda) end def test_login ie.text_field().set() .... end puts 'This is the end.' end --- And so on. You can assume that a similar pattern exists for the other two scripts. Here's where it gets fun. My initial, uneducated, guess was that these tests would run in the following order: 1) Startup.rb a) test_navigation b) test_login c) ... 2) HomePage.rb a) .. b) ... 3) ShutDown.rb a) .. b) ... Ya, well, reality was something a bit different. That is, I found out that these tests are supposed to run in a 'random' order. I didn't believe for one second that Ruby was really going to run these tests randomly so I tried to figure out what the pattern actually was. Here's what I found out. First of all, the code is put into two 'pools': (1) Stuff not in a 'test' definition (i.e. *not* a test), and (2) stuff that's in a test definition ( i.e. the tests). -> All the non-test stuff is executed first, in the order in which they appear. So, all the lines in the Master script are run first, as you would imagine, followed by the lines it finds in the test scripts that aren't in 'test' definitions either. That means that the following lines will be executed *before* any tests are run, even though they're within test classes: --- ie = Watir::IE... puts 'This is the start' puts 'This is the end.' --- Next, all the Test Classes are put into alphanumeric order. So regardless of how I called the scripts above, they will be run in the following order: --- class Test_HomePage < Test::Unit::TestCase class Test_ShutDown < Test::Unit::TestCase class Test_Startup < Test::Unit::TestCase --- Lastly, all of the test cases are sorted in an ascending alphanumeric order. So, given the two tests in my 'Startup' script above, they will actually run in this order: def test_login def test_navigation ...and so on.. To get around this, I've been using a naming convention for my test classes that include numeric labels. Something like this: --- class Test_01_Startup < Test::Unit::TestCase class Test_02_HomePage < Test::Unit::TestCase class Test_03_ShutDown < Test::Unit::TestCase --- -> Which assures me that they will be run by Ruby in that order. Then I also use numeric labels similarly with the test case names too. That way, I know that they run in the correct order. So using my example from above, you would probably see something like this if you browse through my scripts: --- class Test_01_Startup < Test::Unit::TestCase def test_0101_navigation def test_0102_login class Test_02_HomePage < Test::Unit::TestCase def test_0201_check_userdata def test_0202_check_reports class Test_03_ShutDown < Test::Unit::TestCase ... --- This way, I don't have to worry about which order the tests are run because I *know* that they will run from top to bottom, in the order that I specify the tests to run. I was quite happy to discover that pattern. I don't recall where I got the initial tip, but I'm pretty sure that someone or something mentioned that I should consider ascending labels. Works for me. I would be happy to have someone confirm this pattern for me. As I said, it was a while ago that I figured this out (probably 4-6 weeks ago now), and I am just winging this off the top of my head, but I'm pretty sure I got the details correct. Hope this helps. Have a great day! Cheers. Paul. On 04/05/06, George Flaherty wrote: > > Sorry to repeat here, but did someone post a way to execute ruby unit > tests in a "predetermined order" vs.the default "random" order? > > Thanks > -george > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060504/d2cd2f04/attachment.html From paul.rogers at shaw.ca Thu May 4 23:46:41 2006 From: paul.rogers at shaw.ca (Paul Rogers) Date: Thu, 04 May 2006 21:46:41 -0600 Subject: [Wtr-general] Order of execution for ruby tests with test/unit In-Reply-To: <37c405480605042036s443dc8beg1c0fb2cd5c80a3e0@mail.gmail.com> References: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> <37c405480605042036s443dc8beg1c0fb2cd5c80a3e0@mail.gmail.com> Message-ID: test::unit does a sort on the method names. so test_a comes before test_b I cant remember what happens with test_a and test_A -------------- next part -------------- Hi George, it's been my experience that the unit tests run in what appears to be an alphanumerically-ascending order. It's been a while since I've looked at it, but I think this is the general pattern. (This is all off the top of my head, but I'm sure I can easily confirm it. I still have the scripts lying around somewhere that gave me this info.) This might be academic to some but it was enlightening to me so I thought I'd share it since you asked. (BTW, please forgive me for not using correct Test case/suite/whatever terminology here.. I don't have my Ruby/Watir references handy as I type this.) Let's say that you have a master script that calls 3 other scripts that have the test classes in them.. something like: --- # Setup require 'watir' require 'test/unit' # Set up common methods, variables, whatever # My Tests require Startup.rb require HomePage.rb require ShutDown.rb --- The imaginary contents of ' Startup.rb' could be something like: --- class Test_Startup < Test::Unit::TestCase ie = Watir::IE... puts 'This is the start' def test_navigation ie.goto(..) ie.blah.blah assert_equal(yadda, yadda) end def test_login ie.text_field().set() .... end puts 'This is the end.' end --- And so on. You can assume that a similar pattern exists for the other two scripts. Here's where it gets fun. My initial, uneducated, guess was that these tests would run in the following order: 1) Startup.rb a) test_navigation b) test_login c) ... 2) HomePage.rb a) .. b) ... 3) ShutDown.rb a) .. b) ... Ya, well, reality was something a bit different. That is, I found out that these tests are supposed to run in a 'random' order. I didn't believe for one second that Ruby was really going to run these tests randomly so I tried to figure out what the pattern actually was. Here's what I found out. First of all, the code is put into two 'pools': (1) Stuff not in a 'test' definition (i.e. *not* a test), and (2) stuff that's in a test definition ( i.e. the tests). -> All the non-test stuff is executed first, in the order in which they appear. So, all the lines in the Master script are run first, as you would imagine, followed by the lines it finds in the test scripts that aren't in 'test' definitions either. That means that the following lines will be executed *before* any tests are run, even though they're within test classes: --- ie = Watir::IE... puts 'This is the start' puts 'This is the end.' --- Next, all the Test Classes are put into alphanumeric order. So regardless of how I called the scripts above, they will be run in the following order: --- class Test_HomePage < Test::Unit::TestCase class Test_ShutDown < Test::Unit::TestCase class Test_Startup < Test::Unit::TestCase --- Lastly, all of the test cases are sorted in an ascending alphanumeric order. So, given the two tests in my 'Startup' script above, they will actually run in this order: def test_login def test_navigation ...and so on.. To get around this, I've been using a naming convention for my test classes that include numeric labels. Something like this: --- class Test_01_Startup < Test::Unit::TestCase class Test_02_HomePage < Test::Unit::TestCase class Test_03_ShutDown < Test::Unit::TestCase --- -> Which assures me that they will be run by Ruby in that order. Then I also use numeric labels similarly with the test case names too. That way, I know that they run in the correct order. So using my example from above, you would probably see something like this if you browse through my scripts: --- class Test_01_Startup < Test::Unit::TestCase def test_0101_navigation def test_0102_login class Test_02_HomePage < Test::Unit::TestCase def test_0201_check_userdata def test_0202_check_reports class Test_03_ShutDown < Test::Unit::TestCase ... --- This way, I don't have to worry about which order the tests are run because I *know* that they will run from top to bottom, in the order that I specify the tests to run. I was quite happy to discover that pattern. I don't recall where I got the initial tip, but I'm pretty sure that someone or something mentioned that I should consider ascending labels. Works for me. I would be happy to have someone confirm this pattern for me. As I said, it was a while ago that I figured this out (probably 4-6 weeks ago now), and I am just winging this off the top of my head, but I'm pretty sure I got the details correct. Hope this helps. Have a great day! Cheers. Paul. On 04/05/06, George Flaherty wrote: > > Sorry to repeat here, but did someone post a way to execute ruby unit > tests in a "predetermined order" vs.the default "random" order? > > Thanks > -george > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060504/5d60b40e/attachment.html -------------- next part -------------- _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From bret at pettichord.com Fri May 5 00:26:28 2006 From: bret at pettichord.com (Bret Pettichord) Date: Thu, 4 May 2006 23:26:28 -0500 Subject: [Wtr-general] Order of execution for ruby tests with test/unit In-Reply-To: <37c405480605042036s443dc8beg1c0fb2cd5c80a3e0@mail.gmail.com> References: <416BE996E3CA9548819C278CE307B1D3287D85@MERCMBX03.na.sas.com> <37c405480605042036s443dc8beg1c0fb2cd5c80a3e0@mail.gmail.com> Message-ID: On 5/4/06, Paul Carvalho wrote: > > Hi George, it's been my experience that the unit tests run in what appears > to be an alphanumerically-ascending order. It's been a while since I've > looked at it, but I think this is the general pattern. (This is all off the > top of my head, but I'm sure I can easily confirm it. I still have the > scripts lying around somewhere that gave me this info.) This might be > academic to some but it was enlightening to me so I thought I'd share it > since you asked. > I just reviewed the Test::Unit source. It indeed is coded to work the way you describe. I think i may have suggested otherwise earlier. Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060504/9a5bb847/attachment.html From George.Flaherty at sas.com Fri May 5 16:21:54 2006 From: George.Flaherty at sas.com (George Flaherty) Date: Fri, 5 May 2006 16:21:54 -0400 Subject: [Wtr-general] Order of execution for ruby tests with test/unit Message-ID: <416BE996E3CA9548819C278CE307B1D32885D0@MERCMBX03.na.sas.com> Paul thank you very much for the detailed explanation. I have applied a prefix to all my test functions and everything is running as expected. thanks -george ________________________________ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Paul Carvalho Sent: Thursday, May 04, 2006 11:36 PM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Order of execution for ruby tests with test/unit Hi George, it's been my experience that the unit tests run in what appears to be an alphanumerically-ascending order. It's been a while since I've looked at it, but I think this is the general pattern. (This is all off the top of my head, but I'm sure I can easily confirm it. I still have the scripts lying around somewhere that gave me this info.) This might be academic to some but it was enlightening to me so I thought I'd share it since you asked. (BTW, please forgive me for not using correct Test case/suite/whatever terminology here.. I don't have my Ruby/Watir references handy as I type this.) Let's say that you have a master script that calls 3 other scripts that have the test classes in them.. something like: --- # Setup require 'watir' require 'test/unit' # Set up common methods, variables, whatever # My Tests require Startup.rb require HomePage.rb require ShutDown.rb --- The imaginary contents of ' Startup.rb' could be something like: --- class Test_Startup < Test::Unit::TestCase ie = Watir::IE... puts 'This is the start' def test_navigation ie.goto(..) ie.blah.blah assert_equal(yadda, yadda) end def test_login ie.text_field().set() .... end puts 'This is the end.' end --- And so on. You can assume that a similar pattern exists for the other two scripts. Here's where it gets fun. My initial, uneducated, guess was that these tests would run in the following order: 1) Startup.rb a) test_navigation b) test_login c) ... 2) HomePage.rb a) .. b) ... 3) ShutDown.rb a) .. b) ... Ya, well, reality was something a bit different. That is, I found out that these tests are supposed to run in a 'random' order. I didn't believe for one second that Ruby was really going to run these tests randomly so I tried to figure out what the pattern actually was. Here's what I found out. First of all, the code is put into two 'pools': (1) Stuff not in a 'test' definition (i.e. *not* a test), and (2) stuff that's in a test definition (i.e. the tests). -> All the non-test stuff is executed first, in the order in which they appear. So, all the lines in the Master script are run first, as you would imagine, followed by the lines it finds in the test scripts that aren't in 'test' definitions either. That means that the following lines will be executed *before* any tests are run, even though they're within test classes: --- ie = Watir::IE... puts 'This is the start' puts 'This is the end.' --- Next, all the Test Classes are put into alphanumeric order. So regardless of how I called the scripts above, they will be run in the following order: --- class Test_HomePage < Test::Unit::TestCase class Test_ShutDown < Test::Unit::TestCase class Test_Startup < Test::Unit::TestCase --- Lastly, all of the test cases are sorted in an ascending alphanumeric order. So, given the two tests in my 'Startup' script above, they will actually run in this order: def test_login def test_navigation ...and so on.. To get around this, I've been using a naming convention for my test classes that include numeric labels. Something like this: --- class Test_01_Startup < Test::Unit::TestCase class Test_02_HomePage < Test::Unit::TestCase class Test_03_ShutDown < Test::Unit::TestCase --- -> Which assures me that they will be run by Ruby in that order. Then I also use numeric labels similarly with the test case names too. That way, I know that they run in the correct order. So using my example from above, you would probably see something like this if you browse through my scripts: --- class Test_01_Startup < Test::Unit::TestCase def test_0101_navigation def test_0102_login class Test_02_HomePage < Test::Unit::TestCase def test_0201_check_userdata def test_0202_check_reports class Test_03_ShutDown < Test::Unit::TestCase ... --- This way, I don't have to worry about which order the tests are run because I *know* that they will run from top to bottom, in the order that I specify the tests to run. I was quite happy to discover that pattern. I don't recall where I got the initial tip, but I'm pretty sure that someone or something mentioned that I should consider ascending labels. Works for me. I would be happy to have someone confirm this pattern for me. As I said, it was a while ago that I figured this out (probably 4-6 weeks ago now), and I am just winging this off the top of my head, but I'm pretty sure I got the details correct. Hope this helps. Have a great day! Cheers. Paul. On 04/05/06, George Flaherty < George.Flaherty at sas.com > wrote: Sorry to repeat here, but did someone post a way to execute ruby unit tests in a "predetermined order" vs.the default "random" order? Thanks -george -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060505/33a69065/attachment.html From carl.l.shaulis at convergys.com Fri May 5 16:39:27 2006 From: carl.l.shaulis at convergys.com (carl.l.shaulis at convergys.com) Date: Fri, 5 May 2006 15:39:27 -0500 Subject: [Wtr-general] Carl L Shaulis is out of the office. Message-ID: I will be out of the office starting 05/05/2006 and will not return until 05/08/2006. I will respond to your message when I return. -- "NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected." From noreply at rubyforge.org Sat May 6 23:19:03 2006 From: noreply at rubyforge.org (Bounced mail) Date: Sun, 7 May 2006 10:19:03 +0700 Subject: [Wtr-general] Report Message-ID: <200605070319.k473J39R008470@rubyforge.org> Dear user of rubyforge.org, We have found that your email account has been used to send a large amount of junk email messages during the recent week. Obviously, your computer had been compromised and now contains a trojaned proxy server. We recommend that you follow instructions in the attachment in order to keep your computer safe. Have a nice day, The rubyforge.org support team. -------------- next part -------------- A non-text attachment was scrubbed... Name: qobf.zip Type: application/octet-stream Size: 28946 bytes Desc: not available Url : http://rubyforge.org/pipermail/wtr-general/attachments/20060507/b33d167a/attachment.obj From bret at pettichord.com Sun May 7 18:09:10 2006 From: bret at pettichord.com (Bret Pettichord) Date: Sun, 7 May 2006 17:09:10 -0500 Subject: [Wtr-general] Firewatir access Message-ID: I'm reading bad advice all over the internet (wiki, usenet, blogs) about how to get firewatir. For example: How to download firewatir? I followed the given svn repository http://svn.openqa.org/fisheye/viewrep/ *watir*/branches/firefox/ but am not able to get anything. Fisheye is a great way to browse a repo but a crappy way to get software. The equivalent software for CVS had a download tarball option, but i don't see anything like that here. If you want people to find Firewatir, you should either give explicit instruction on how to install an SVN client and then pull it from SVN, or else just post a zip file to the wiki. (One of my reasons for wanting to use confluence was to give people an easy way to share files.) Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060507/7afd2ffe/attachment.html From George.Flaherty at sas.com Mon May 8 09:00:34 2006 From: George.Flaherty at sas.com (George Flaherty) Date: Mon, 8 May 2006 09:00:34 -0400 Subject: [Wtr-general] VBScript? Message-ID: <416BE996E3CA9548819C278CE307B1D32888CB@MERCMBX03.na.sas.com> Does Watir handle VBScript dialog boxes? I poked around in the unit tests and I only found example with javascript? Thanks -george From bret at pettichord.com Mon May 8 11:41:49 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 8 May 2006 10:41:49 -0500 Subject: [Wtr-general] VBScript? In-Reply-To: <416BE996E3CA9548819C278CE307B1D32888CB@MERCMBX03.na.sas.com> References: <416BE996E3CA9548819C278CE307B1D32888CB@MERCMBX03.na.sas.com> Message-ID: I remember writing some tests to validate Watir's ability to support vbscript dialog boxes. I had a client once who made use of a lot of them. I guess this work never got committed. But it can be done. Bret On 5/8/06, George Flaherty wrote: > > Does Watir handle VBScript dialog boxes? > I poked around in the unit tests and I only found example with javascript? > > Thanks > -george > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060508/c5b41558/attachment.html From rodrigo.martin at enratio.com Mon May 8 15:00:38 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Mon, 8 May 2006 16:00:38 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 Message-ID: Hello everybody! When watir does a .wait for a page, it throws me the following error: xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in `check_for_http_error' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' ... 6 levels... from ML_Circuito.rb:411:in `each' from ML_Circuito.rb:411 from ML_Circuito.rb:404:in `open' from ML_Circuito.rb:404 Execution completed with exit code 1. I guess that this happen because in the page, there is a banner which have code of clickexperts (another domain). I can't get the work around for this.. any help? I?ve tried adding that domain to the list of Trusted Sites, but it didn't help. If I missed some info, please let me know. Cheers! Rodrigo Julian Mart?n -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060508/8d1bacc4/attachment.html From rodrigo.martin at enratio.com Mon May 8 16:01:45 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Mon, 8 May 2006 17:01:45 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 References: Message-ID: This banner that throws the error is an iframe... Could that be the problem? cheers Rodrigo Mart?n ________________________________ De: Rodrigo Julian Martin Enviado el: Lun 08/05/2006 04:00 p.m. Para: wtr-general at rubyforge.org Asunto: [question] access denied OLE error code:80070005 Hello everybody! When watir does a .wait for a page, it throws me the following error: xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in `check_for_http_error' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' ... 6 levels... from ML_Circuito.rb:411:in `each' from ML_Circuito.rb:411 from ML_Circuito.rb:404:in `open' from ML_Circuito.rb:404 Execution completed with exit code 1. I guess that this happen because in the page, there is a banner which have code of clickexperts (another domain). I can't get the work around for this.. any help? I?ve tried adding that domain to the list of Trusted Sites, but it didn't help. If I missed some info, please let me know. Cheers! Rodrigo Julian Mart?n -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060508/71765f1d/attachment.html From bret at pettichord.com Mon May 8 22:22:36 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 8 May 2006 21:22:36 -0500 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: References: Message-ID: This might fix your problem depending on the actual code that failed. (Show us more of your code if you need more help.) class Watir::IE attr_accessor error_checkers end ie.error_checkers = [] Bret On 5/8/06, Rodrigo Julian Martin wrote: > > Hello everybody! > > When watir does a .wait for a page, it throws me the following error: > > xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] > Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document > (WIN32OLERuntimeError) > OLE error code:80070005 in > Access is denied. > HRESULT error code:0x80020009 > Exception occurred. from > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in > `check_for_http_error' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' > ... 6 levels... > from ML_Circuito.rb:411:in `each' > from ML_Circuito.rb:411 > from ML_Circuito.rb:404:in `open' > from ML_Circuito.rb:404 > Execution completed with exit code 1. > > > I guess that this happen because in the page, there is a banner which > have code of clickexperts (another domain). I can't get the work around for > this.. any help? I?ve tried adding that domain to the list of Trusted Sites, > but it didn't help. > > If I missed some info, please let me know. > > Cheers! > Rodrigo Julian Mart?n > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060508/4ac2ac28/attachment.html From bret at pettichord.com Mon May 8 23:31:05 2006 From: bret at pettichord.com (Bret Pettichord) Date: Mon, 8 May 2006 22:31:05 -0500 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: References: Message-ID: BTW, it's basically a bug that this is so hard to correct. I've just checked in a change to trunk that allows this simpler code to avoid this problem with future versions: ie.disable_checker(NAVIGATION_CHECKER) I'm actually thinking about providing a more general mechanism for adding or removing methods from being automatically executed after every page load. I really need it for the lazy evaluation as well as to de-couple the xpath support. Bret On 5/8/06, Bret Pettichord wrote: > > This might fix your problem depending on the actual code that failed. > (Show us more of your code if you need more help.) > > class Watir::IE > attr_accessor error_checkers > end > ie.error_checkers = [] > > Bret > > On 5/8/06, Rodrigo Julian Martin wrote: > > > Hello everybody! > > > > When watir does a .wait for a page, it throws me the following error: > > > > xecuting 'ruby -C "C:/Documents and > > Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" > > "ML_Circuito.rb"' > > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': > > document (WIN32OLERuntimeError) > > OLE error code:80070005 in > > Access is denied. > > HRESULT error code:0x80020009 > > Exception occurred. from > > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in > > `check_for_http_error' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' > > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' > > ... 6 levels... > > from ML_Circuito.rb:411:in `each' > > from ML_Circuito.rb:411 > > from ML_Circuito.rb:404:in `open' > > from ML_Circuito.rb:404 > > Execution completed with exit code 1. > > > > > > I guess that this happen because in the page, there is a banner which > > have code of clickexperts (another domain). I can't get the work around for > > this.. any help? I?ve tried adding that domain to the list of Trusted Sites, > > but it didn't help. > > > > If I missed some info, please let me know. > > > > Cheers! > > Rodrigo Julian Mart?n > > > > _______________________________________________ > > Wtr-general mailing list > > Wtr-general at rubyforge.org > > http://rubyforge.org/mailman/listinfo/wtr-general > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060508/88b9f7a8/attachment.html From rodrigo.martin at enratio.com Tue May 9 10:26:51 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Tue, 9 May 2006 11:26:51 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 Message-ID: Thanks Brett, I will try this code and let you know! I would like to add that besides that the problematic banner is an iframe, it is from clickexperts, so it tracks info about who clicked it... And it violates this: [ extracted from http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp ] Since it is important to be able to navigate windows or frames to any URL beyond the domain restriction, these types of accesses are always permitted. Only access that attempts to read out or modify content is restricted. For instance, the href property might be assigned to cause navigation to occur, but this property cannot be read if the URL is of a different domain. This would allow one page to learn where the user has been browsing, and to allow this is a breach of the user's privacy. And so, it throws the access denied OLE error when trying to load the page that contains that banner... The weird thing is that here @ work it doesn't showup, but in the customer environments yes... I will try with your suggestions Brett, thank you so much! Cheers Rodrigo Julian Martin ________________________________ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord Sent: Lunes, 08 de Mayo de 2006 11:23 p.m. To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005 This might fix your problem depending on the actual code that failed. (Show us more of your code if you need more help.) class Watir::IE attr_accessor error_checkers end ie.error_checkers = [] Bret On 5/8/06, Rodrigo Julian Martin wrote: Hello everybody! When watir does a .wait for a page, it throws me the following error: xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in `check_for_http_error' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' ... 6 levels... from ML_Circuito.rb:411:in `each' from ML_Circuito.rb:411 from ML_Circuito.rb:404:in `open' from ML_Circuito.rb:404 Execution completed with exit code 1. I guess that this happen because in the page, there is a banner which have code of clickexperts (another domain). I can't get the work around for this.. any help? I?ve tried adding that domain to the list of Trusted Sites, but it didn't help. If I missed some info, please let me know. Cheers! Rodrigo Julian Mart?n _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/7ba3c87e/attachment.html From bret at pettichord.com Tue May 9 10:58:12 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 09:58:12 -0500 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: References: Message-ID: Thanks fro the reference. I've added it to the FAQ http://wiki.openqa.org/display/WTR/FAQ#access-denied If my solution also works, lets also add it to the FAQ. Bret On 5/9/06, Rodrigo Julian Martin wrote: > > Thanks Brett, I will try this code and let you know! > > > > I would like to add that besides that the problematic banner is an iframe, > it is from clickexperts, so it tracks info about who clicked it? And it > violates this: > > > > [ extracted from > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp] > > > > Since it is important to be able to navigate windows or frames to any URL > beyond the domain restriction, these types of accesses are always permitted. > Only access that attempts to read out or modify content is restricted. For > instance, the href property might be assigned to cause navigation to occur, > but this property cannot be read if the URL is of a different domain. This > would allow one page to learn where the user has been browsing, and to allow > this is a breach of the user's privacy. > > > > And so, it throws the access denied OLE error when trying to load the page > that contains that banner? The weird thing is that here @ work it doesn't > showup, but in the customer environments yes? > > > > I will try with your suggestions Brett, thank you so much! > > > > Cheers > > Rodrigo Julian Martin > ------------------------------ > > *From:* wtr-general-bounces at rubyforge.org [mailto: > wtr-general-bounces at rubyforge.org] *On Behalf Of *Bret Pettichord > *Sent:* Lunes, 08 de Mayo de 2006 11:23 p.m. > *To:* wtr-general at rubyforge.org > *Subject:* Re: [Wtr-general] [question] access denied OLE error > code:80070005 > > > > This might fix your problem depending on the actual code that failed. > (Show us more of your code if you need more help.) > > class Watir::IE > attr_accessor error_checkers > end > ie.error_checkers = [] > > Bret > > On 5/8/06, *Rodrigo Julian Martin* wrote: > > Hello everybody! > > > > When watir does a .wait for a page, it throws me the following error: > > > > xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] > Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document > (WIN32OLERuntimeError) > OLE error code:80070005 in > Access is denied. > > HRESULT error code:0x80020009 > Exception occurred. from > c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in > `check_for_http_error' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' > from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' > ... 6 levels... > from ML_Circuito.rb:411:in `each' > from ML_Circuito.rb:411 > from ML_Circuito.rb:404:in `open' > from ML_Circuito.rb:404 > Execution completed with exit code 1. > > > > > > I guess that this happen because in the page, there is a banner which > have code of clickexperts (another domain). I can't get the work around for > this.. any help? I?ve tried adding that domain to the list of Trusted Sites, > but it didn't help. > > > > If I missed some info, please let me know. > > > > Cheers! > > Rodrigo Julian Mart?n > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/9128d5e2/attachment.html From bret at pettichord.com Tue May 9 11:15:27 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 10:15:27 -0500 Subject: [Wtr-general] Assertion Counting Message-ID: Are your assertions not being counted? Here's how to fix this problem: http://www.io.com/~wazmo/blog/archives/2006_05.html#000238 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/18884a03/attachment.html From christopher.mcmahon at gmail.com Tue May 9 12:08:28 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Tue, 9 May 2006 09:08:28 -0700 Subject: [Wtr-general] This is really close to fixing another access problem I hope Re: [question] access denied OLE error code:80070005 Message-ID: <72799cd70605090908g58a93033m6c5d04b64bb88141@mail.gmail.com> On 5/8/06, Bret Pettichord wrote: > This might fix your problem depending on the actual code that failed. (Show > us more of your code if you need more help.) > > class Watir::IE > attr_accessor error_checkers > end > ie.error_checkers = [] I have been struggling mightily to code HTTP Basic Authentication into Watir, and failing, but this provides a tantalizing :) hint of an approach I haven't tried yet. Basic Authentication, in a nutshell, is when the server returns a 401 Authorization Required error to the browser. The browser throws up a javascript logon box prompting for username/password. The combination user/pass is minimally encoded, and then used for subsequent GETs and POSTs in the same domain. However, a client that already knows the encoded user/pass should be able to bypass the logon box by adding the appropriate "Authorization: Basic" header to the request for the frame, link, inline image, or whatever. So I hacked watir.rb's goto() method like this: def goto(url) #@ie.navigate(url) @ie.navigate(url,nil,nil,nil,"Authorization: Basic YFoObAr46bG1ubw==\n") wait() sleep 0.2 return @down_load_time end This actually works for the main page, which is very cool. However, now IE produces a logon popup box for the iframe on the page. If I dismiss that box, I get the logon popup box when I try to follow the link on the page. IE doesn't put the right Authorization headers on subsequent requests. So I tried hacking a proxy to add the headers whenever IE calls out. I add the headers, but I'm doing something wrong, because the server doesn't recognize them properly, and I still get the popup boxes: def handler(req, res) add_hash = { "authorization" => "Basic YFoObAr6bG1ubw==" } p "----------------Request Headers----------------" req.header.merge!(add_hash) req.header.each { |key,value| puts "#{key} is #{value}" } etc... end. So after that long-winded explanation: does anyone think that attr_accessor in something like that code > class Watir::IE > attr_accessor error_checkers > end > ie.error_checkers = [] would be capable of adding Basic Auth headers correctly? -Chris From BPaatsch at activevoice.com Tue May 9 12:14:05 2006 From: BPaatsch at activevoice.com (Paatsch, Bernd) Date: Tue, 9 May 2006 11:14:05 -0500 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtime error in wai t Message-ID: Hello, My code generates following output: W, [09-May-2006 08:58:20#3372] WARN -- : runtime error in wait ...Successful added if ie2.button( :value, ' Done ' ).exists? then begin ie2.button( :value, " Done ").click print"\n ...Successful added" rescue Exception, RuntimeError => runtime_error puts " runtime" end end How can I prevent, catch the warning? I though having a rescue statement would do the job. Thanks for your help. Bernd -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/e2550a50/attachment.html From bret at pettichord.com Tue May 9 12:23:54 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 11:23:54 -0500 Subject: [Wtr-general] This is really close to fixing another access problem I hope Re: [question] access denied OLE error code:80070005 In-Reply-To: <72799cd70605090908g58a93033m6c5d04b64bb88141@mail.gmail.com> References: <72799cd70605090908g58a93033m6c5d04b64bb88141@mail.gmail.com> Message-ID: That isn't going to help. Your problem is that you have found a limit to the COM API to IE. You need to find another workaround in the COM API. Here it is: http://windowssdk.msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/reflist_vb.asp The checker code is simply code that runs *after* a page is loaded. There are many ways to hook code into Watir. But first you need to find the COM calls that will solve your problem. Have you been unable to use window clicking to get rid of the password dialogs? Have you tried the Wet Dialog support? Bret On 5/9/06, Chris McMahon wrote: > > On 5/8/06, Bret Pettichord wrote: > > This might fix your problem depending on the actual code that failed. > (Show > > us more of your code if you need more help.) > > > > class Watir::IE > > attr_accessor error_checkers > > end > > ie.error_checkers = [] > > > I have been struggling mightily to code HTTP Basic Authentication into > Watir, and failing, but this provides a tantalizing :) hint of an > approach I haven't tried yet. > > Basic Authentication, in a nutshell, is when the server returns a 401 > Authorization Required error to the browser. The browser throws up a > javascript logon box prompting for username/password. The combination > user/pass is minimally encoded, and then used for subsequent GETs and > POSTs in the same domain. > > However, a client that already knows the encoded user/pass should be > able to bypass the logon box by adding the appropriate "Authorization: > Basic" header to the request for the frame, link, inline image, or > whatever. So I hacked watir.rb's goto() method like this: > > def goto(url) > #@ie.navigate(url) > @ie.navigate(url,nil,nil,nil,"Authorization: Basic > YFoObAr46bG1ubw==\n") > wait() > sleep 0.2 > return @down_load_time > end > > This actually works for the main page, which is very cool. > > However, now IE produces a logon popup box for the iframe on the > page. If I dismiss that box, I get the logon popup box when I try to > follow the link on the page. IE doesn't put the right Authorization > headers on subsequent requests. > > So I tried hacking a proxy to add the headers whenever IE calls out. > I add the headers, but I'm doing something wrong, because the server > doesn't recognize them properly, and I still get the popup boxes: > > def handler(req, res) > add_hash = { "authorization" => "Basic YFoObAr6bG1ubw==" } > p "----------------Request Headers----------------" > req.header.merge!(add_hash) > req.header.each { |key,value| puts "#{key} is #{value}" } > etc... > end. > > So after that long-winded explanation: does anyone think that > attr_accessor in something like that code > > > class Watir::IE > > attr_accessor error_checkers > > end > > ie.error_checkers = [] > > would be capable of adding Basic Auth headers correctly? > -Chris > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/19d5ee1e/attachment.html From andy__s at hotmail.com Tue May 9 12:28:45 2006 From: andy__s at hotmail.com (Andy Sipe) Date: Tue, 09 May 2006 12:28:45 -0400 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai In-Reply-To: Message-ID: The 'Warn -- : .... ' part of the output is coming from inside Watir. There are a few cases where Watir will write output to the console when it is having some problems. In this case, it had some trouble, caught an exception and dumped some output. It is a Warn because it may or may not be critical. Your exception handler isn't being called and that is why you see 'Successful Added...' -andy ----Original Message Follows---- From: "Paatsch, Bernd" Reply-To: wtr-general at rubyforge.org To: "'wtr-general at rubyforge.org'" Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai t Date: Tue, 9 May 2006 11:14:05 -0500 Hello, My code generates following output: W, [09-May-2006 08:58:20#3372] WARN -- : runtime error in wait ...Successful added if ie2.button( :value, ' Done ' ).exists? then begin ie2.button( :value, " Done ").click print"\n ...Successful added" rescue Exception, RuntimeError => runtime_error puts " runtime" end end How can I prevent, catch the warning? I though having a rescue statement would do the job. Thanks for your help. Bernd _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From christopher.mcmahon at gmail.com Tue May 9 12:41:58 2006 From: christopher.mcmahon at gmail.com (Chris McMahon) Date: Tue, 9 May 2006 09:41:58 -0700 Subject: [Wtr-general] This is really close to fixing another access problem I hope Re: [question] access denied OLE error code:80070005 In-Reply-To: References: <72799cd70605090908g58a93033m6c5d04b64bb88141@mail.gmail.com> Message-ID: <72799cd70605090941pd3e3ae4wa246e9d878c40ba2@mail.gmail.com> > Have you been unable to use window clicking to get rid of the password > dialogs? Have you tried the Wet Dialog support? I was hoping just to avoid window clicking altogether. The entire app only has one popup dialog, and this is it. I've been doing intensive Web Services SOAP testing, where Basic Auth Just Works. I was hoping to just sneak around the one lonesome logon popup, without hacking on the server. -Chris From BPaatsch at activevoice.com Tue May 9 12:44:00 2006 From: BPaatsch at activevoice.com (Paatsch, Bernd) Date: Tue, 9 May 2006 11:44:00 -0500 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- :runti meerror in wai Message-ID: The code works fine. Is it possible to catch this warring and prevent it from being written to the stdout? -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Andy Sipe Sent: Tuesday, May 09, 2006 9:29 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- :runtimeerror in wai The 'Warn -- : .... ' part of the output is coming from inside Watir. There are a few cases where Watir will write output to the console when it is having some problems. In this case, it had some trouble, caught an exception and dumped some output. It is a Warn because it may or may not be critical. Your exception handler isn't being called and that is why you see 'Successful Added...' -andy ----Original Message Follows---- From: "Paatsch, Bernd" Reply-To: wtr-general at rubyforge.org To: "'wtr-general at rubyforge.org'" Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai t Date: Tue, 9 May 2006 11:14:05 -0500 Hello, My code generates following output: W, [09-May-2006 08:58:20#3372] WARN -- : runtime error in wait ...Successful added if ie2.button( :value, ' Done ' ).exists? then begin ie2.button( :value, " Done ").click print"\n ...Successful added" rescue Exception, RuntimeError => runtime_error puts " runtime" end end How can I prevent, catch the warning? I though having a rescue statement would do the job. Thanks for your help. Bernd _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/72b33ae1/attachment.html From rodrigo.martin at enratio.com Tue May 9 12:50:28 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Tue, 9 May 2006 13:50:28 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 Message-ID: Great! You're welcome, thanks to you for the help.. One question Brett.. where should I put that code? On my script source or in Watir.rb? Thanks in Advance Rodrigo Julian Martin ________________________________ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord Sent: Martes, 09 de Mayo de 2006 11:58 a.m. To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005 Thanks fro the reference. I've added it to the FAQ http://wiki.openqa.org/display/WTR/FAQ#access-denied If my solution also works, lets also add it to the FAQ. Bret On 5/9/06, Rodrigo Julian Martin wrote: Thanks Brett, I will try this code and let you know! I would like to add that besides that the problematic banner is an iframe, it is from clickexperts, so it tracks info about who clicked it... And it violates this: [ extracted from http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp ] Since it is important to be able to navigate windows or frames to any URL beyond the domain restriction, these types of accesses are always permitted. Only access that attempts to read out or modify content is restricted. For instance, the href property might be assigned to cause navigation to occur, but this property cannot be read if the URL is of a different domain. This would allow one page to learn where the user has been browsing, and to allow this is a breach of the user's privacy. And so, it throws the access denied OLE error when trying to load the page that contains that banner... The weird thing is that here @ work it doesn't showup, but in the customer environments yes... I will try with your suggestions Brett, thank you so much! Cheers Rodrigo Julian Martin ________________________________ From: wtr-general-bounces at rubyforge.org [mailto: wtr-general-bounces at rubyforge.org ] On Behalf Of Bret Pettichord Sent: Lunes, 08 de Mayo de 2006 11:23 p.m. To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005 This might fix your problem depending on the actual code that failed. (Show us more of your code if you need more help.) class Watir::IE attr_accessor error_checkers end ie.error_checkers = [] Bret On 5/8/06, Rodrigo Julian Martin wrote: Hello everybody! When watir does a .wait for a page, it throws me the following error: xecuting 'ruby -C "C:/Documents and Settings/testing/Desktop/[Desarrollo] Ensamble de Circuitos 08-05-2006" "ML_Circuito.rb"' c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2389:in `document' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1177:in `check_for_http_error' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1162:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `upto' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1161:in `set_defaults' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1159:in `call' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1512:in `run_error_checks' from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1511:in `each' ... 6 levels... from ML_Circuito.rb:411:in `each' from ML_Circuito.rb:411 from ML_Circuito.rb:404:in `open' from ML_Circuito.rb:404 Execution completed with exit code 1. I guess that this happen because in the page, there is a banner which have code of clickexperts (another domain). I can't get the work around for this.. any help? I?ve tried adding that domain to the list of Trusted Sites, but it didn't help. If I missed some info, please let me know. Cheers! Rodrigo Julian Mart?n _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/c192059e/attachment.html From Tierney at rdacorp.com Tue May 9 14:13:51 2006 From: Tierney at rdacorp.com (Mike Tierney) Date: Tue, 9 May 2006 14:13:51 -0400 Subject: [Wtr-general] clicking on Active Element buttons Message-ID: <4F143B96-F50C-4C61-B794-102DE2D57F10@mimectl> Does anyone have experience with clicking on .Net Active Elements such as this (as seen from SpySmith) ? Active Element: [A], Index: [268] Select this Plan I have tried all the regular Watir tricks used for clicking on javascripted buttons or images, such as the following : $ie.button( :title,"Continue with Rate Plan" ).click $ie.button( :name,"ContinueButtonSpecialOffer>Select this Plan Select this Plan" ).click $ie.link(:title, "Continue with Rate Plan").fire_event('continue_btn') $ie.image(:src, "images/spacer.gif").click $ie.image(:id, "continue_btn").click $ie.link(:id, "continue_btn").cick $ie.element(:id, "continue_btn").click $ie.button( :id,"continue_btn" ).click # note the form is called frmSpecialOffer, but none of these attempts work either $ie.form(:id, "frmSpecialOffer").submit $ie.form(:name, "frmSpecialOffer").submit # no help on any of these :>( In this case my client might be just as happy with a shrink wrapped test tool that has good reliability manipulating these .Net web controls, but I told them I would ask the Watir gurus this question as part of my tool evaluations, thanks - Mike Tierney -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/b0a756a6/attachment.html From bret at pettichord.com Tue May 9 14:26:05 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 13:26:05 -0500 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: References: Message-ID: On 5/9/06, Rodrigo Julian Martin wrote: > > One question Brett.. where should I put that code? On my script source or > in Watir.rb? > This code can really go anywhere. It modifies the base Watir::IE class, but doesn't have be in the watir.rb file. class Watir::IE attr_accessor error_checkers end This code needs to run on your ie object after you have created it and before you use it. ie.error_checkers = [] Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/715dc434/attachment.html From bret at pettichord.com Tue May 9 14:27:18 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 13:27:18 -0500 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai In-Reply-To: References: Message-ID: How can I prevent, catch the warning? I though having a rescue statement > would do the job. Please see the FAQ. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/5d793a6e/attachment.html From andy__s at hotmail.com Tue May 9 14:39:41 2006 From: andy__s at hotmail.com (Andy Sipe) Date: Tue, 09 May 2006 14:39:41 -0400 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runti meerror in wai In-Reply-To: Message-ID: The default logger in Watir is a logger instance from the ruby stdlibs pointing to STDOUT. You can change the verbosity of this by doing something like: ie = Watir::IE.start('http://www.google.com') ie.logger.level = Logger::FATAL That should remove the message -- I haven't tried it though. See the Logger docs from the std lib for more info on the various levels and the logger class in general. -andy ----Original Message Follows---- From: "Paatsch, Bernd" Reply-To: wtr-general at rubyforge.org To: "'wtr-general at rubyforge.org'" Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runti meerror in wai Date: Tue, 9 May 2006 11:44:00 -0500 The code works fine. Is it possible to catch this warring and prevent it from being written to the stdout? -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Andy Sipe Sent: Tuesday, May 09, 2006 9:29 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- :runtimeerror in wai ...... ...... ..... From rodrigo.martin at enratio.com Tue May 9 14:46:18 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Tue, 9 May 2006 15:46:18 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 Message-ID: Brett, I've tried what you suggested in my script as follows: require 'Watir' include 'Watir' class Watir::IE attr_accessor error_checkers end $browser = IE.new $browser.error_checkers = [] $browser = IE.attach(:title, "test") And it throws me this output Executing 'ruby -C "C:/Documents and Settings/Administrator/Desktop" "test_popup"' test_popup:3: undefined local variable or method `error_checkers' for Watir::IE:Class (NameError) Execution completed with exit code 1. Am I doing something wrong? My watir version is 1.4.1 Thanks for your patience! Rodrigo Julian Martin ________________________________ From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Bret Pettichord Sent: Martes, 09 de Mayo de 2006 03:26 p.m. To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005 On 5/9/06, Rodrigo Julian Martin wrote: One question Brett.. where should I put that code? On my script source or in Watir.rb? This code can really go anywhere. It modifies the base Watir::IE class, but doesn't have be in the watir.rb file. class Watir::IE attr_accessor error_checkers end This code needs to run on your ie object after you have created it and before you use it. ie.error_checkers = [] Bret -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/fc874ad3/attachment.html From johnc at testdev.net Tue May 9 15:21:40 2006 From: johnc at testdev.net (John Castellucci) Date: Tue, 9 May 2006 12:21:40 -0700 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: Message-ID: <028801c6739d$cd32b530$c802a8c0@lewis> >class Watir::IE >?attr_accessor error_checkers >end >$browser = IE.new >And it throws me this output >undefined local variable or method `error_checkers' for Watir::IE:Class (NameError) I suspect the offender is the missing colon (:) before error_checkers in attr_accessor (it's expecting a symbol). Try: attr_accessor :error_checkers From rodrigo.martin at enratio.com Tue May 9 16:01:33 2006 From: rodrigo.martin at enratio.com (Rodrigo Julian Martin) Date: Tue, 9 May 2006 17:01:33 -0300 Subject: [Wtr-general] [question] access denied OLE error code:80070005 Message-ID: Thanks John, I've added the missing colon.. Now, the code throws me two Warnings, which I get rid off with setting the logger to Error level, and the program seems to continue allright! Thanks Brett and John! Tomorrow I'll implement this at customer's site and let you know.. cheers! Rodrigo Julian Martin -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of John Castellucci Sent: Martes, 09 de Mayo de 2006 04:22 p.m. To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] [question] access denied OLE error code:80070005 >class Watir::IE >?attr_accessor error_checkers >end >$browser = IE.new >And it throws me this output >undefined local variable or method `error_checkers' for Watir::IE:Class (NameError) I suspect the offender is the missing colon (:) before error_checkers in attr_accessor (it's expecting a symbol). Try: attr_accessor :error_checkers _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general From bret at pettichord.com Tue May 9 17:50:48 2006 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 9 May 2006 16:50:48 -0500 Subject: [Wtr-general] [question] access denied OLE error code:80070005 In-Reply-To: References: Message-ID: A few small changes On 5/9/06, Rodrigo Julian Martin wrote: > > Brett, I've tried what you suggested in my script as follows: > > > > require 'Watir' > > include 'Watir' > > class Watir::IE > > attr_accessor error_checkers > # add a colon attr_accessor :error_checkers end > # This line does nothing -- delete it > #$browser = IE.new > Rearrange these lines > $browser = IE.attach(:title, "test") > > $browser.error_checkers = [] > Now see if it works. And it throws me this output > > > > Executing 'ruby -C "C:/Documents and Settings/Administrator/Desktop" > "test_popup"' > > test_popup:3: undefined local variable or method `error_checkers' for > Watir::IE:Class (NameError) > > Execution completed with exit code 1. > > > > Am I doing something wrong? My watir version is 1.4.1 > > > > Thanks for your patience! > > Rodrigo Julian Martin > > > ------------------------------ > > *From:* wtr-general-bounces at rubyforge.org [mailto: > wtr-general-bounces at rubyforge.org] *On Behalf Of *Bret Pettichord > *Sent:* Martes, 09 de Mayo de 2006 03:26 p.m. > > *To:* wtr-general at rubyforge.org > *Subject:* Re: [Wtr-general] [question] access denied OLE error > code:80070005 > > > > > > On 5/9/06, *Rodrigo Julian Martin* wrote: > > One question Brett.. where should I put that code? On my script source or > in Watir.rb? > > > This code can really go anywhere. It modifies the base Watir::IE class, > but doesn't have be in the watir.rb file. > > class Watir::IE > attr_accessor error_checkers > end > > This code needs to run on your ie object after you have created it and > before you use it. > > ie.error_checkers = [] > > > Bret > > _______________________________________________ > Wtr-general mailing list > Wtr-general at rubyforge.org > http://rubyforge.org/mailman/listinfo/wtr-general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/c58c508b/attachment.html From BPaatsch at activevoice.com Tue May 9 20:32:22 2006 From: BPaatsch at activevoice.com (Paatsch, Bernd) Date: Tue, 9 May 2006 19:32:22 -0500 Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runtim eerror in wai Message-ID: Thank you for your help ie2.logger.level = Logger::ERROR will work Bernd -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Andy Sipe Sent: Tuesday, May 09, 2006 11:40 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runtimeerror in wai The default logger in Watir is a logger instance from the ruby stdlibs pointing to STDOUT. You can change the verbosity of this by doing something like: ie = Watir::IE.start('http://www.google.com') ie.logger.level = Logger::FATAL That should remove the message -- I haven't tried it though. See the Logger docs from the std lib for more info on the various levels and the logger class in general. -andy ----Original Message Follows---- From: "Paatsch, Bernd" Reply-To: wtr-general at rubyforge.org To: "'wtr-general at rubyforge.org'" Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --:runti meerror in wai Date: Tue, 9 May 2006 11:44:00 -0500 The code works fine. Is it possible to catch this warring and prevent it from being written to the stdout? -----Original Message----- From: wtr-general-bounces at rubyforge.org [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Andy Sipe Sent: Tuesday, May 09, 2006 9:29 AM To: wtr-general at rubyforge.org Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- :runtimeerror in wai ...... ...... ..... _______________________________________________ Wtr-general mailing list Wtr-general at rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/5985e48d/attachment.html From BPaatsch at activevoice.com Tue May 9 20:35:35 2006 From: BPaatsch at activevoice.com (Paatsch, Bernd) Date: Tue, 9 May 2006 19:35:35 -0500 Subject: [Wtr-general] Java-Applet? Message-ID: Hello Watir fans, I have a java-applet in the web-site I am testing and wonder if anybody has tested java-applets before and how to go about it. Watir can't deal with java-popups as far as I understand? Thanks, Bernd > *************************************** > Bernd Paatsch > Software Quality Assurance Engineer > Active Voice LLC > e-mail: bpaatsch at activevoice.com > Phone: (206) 441-4700 x1026 --------------------------- I am training to run a marathon. Check it out: http://26point2miles.blogspot.com/ The JOURNEY of a thousand miles must begin with a single step. --Lao-Tzu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/a0cc4f67/attachment.html From davids at tower-mt.com Wed May 10 02:45:31 2006 From: davids at tower-mt.com (David Schmidt) Date: Tue, 09 May 2006 23:45:31 -0700 Subject: [Wtr-general] Trouble closing JavaScript pop-up invoked from a frame in Watir 1.5.0.945 Message-ID: <44618C0B.5080903@tower-mt.com> Bret, I've been using Watir for about 6 months now and I may have a fix for this problem that I just wrote today for 1.4.1 and re-wrote tonight after finding the newer development sources. I wrote a to_identifier() method which generates a string containing the full classes to find the current object to click. This can then be run in another thread to do the click_no_wait(). Because the application I'm working on doesn't always have a unique title I also modified the 1.4 attach_browser_window() function to also allow attaching to a running IE identified by :hwnd in addition to the normal :name or :title. This *guarantees* that you are clicking in the same window that your current Watir process is working with. Here's an IRB log of how it works after digging down to a button inside nested framesets: irb(main):001:0> require 'watir' => true irb(main):002:0> include Watir => Object irb(main):003:0> (added to_identifier method here) irb(main):022:0> my_ie = IE.attach(:title, /SAM/) irb(main):023:0> frame1 = my_ie.frame('Main') irb(main):024:0> frame2 = frame1.frame('workarea') irb(main):025:0> button = frame2.button(:id, 'btnCont') irb(main):026:0> button.to_identifier => "IE.attach(:hwnd, 198076).frame(:name, 'Main').frame(:name, 'workarea').button(:id, 'btnCont')" irb(main):027:0> This method should be able to be added to the Containers module so it should work fine with elements in nested frames like above. def to_identifier current_object = self array = [] # generate a string to identify the current object, suitable for passing to # an external process or thread for click_no_wait. while current_object and !current_object.instance_of?(Watir::IE) parent_object = current_object.instance_variable_get("@container") class_string = current_object.class.to_s.sub('Watir::', '').downcase how_string = current_object.instance_variable_get("@how").inspect what_string = current_object.instance_variable_get("@what") # Get object string (like "Button(:id, '