Re: [Wtr-general] unicode question

2006-10-25 Thread Christian Kreutzer
hi Charley, thanks for your reply. Your example works fine so far but it doesn't solve our problem. In our case the unicode chars are escaped like this \u00fc (should be a german ue umlaut) I can use this escaped chars in Python for example: print u\u00fc ü In Ruby i get the following result:

Re: [Wtr-general] ASP.NET and Watir

2006-10-25 Thread Željko Filipin
On 10/24/06, Roger Studner [EMAIL PROTECTED] wrote: Is it well known that it is impossible to test dynamically generated ASP.NET stuff with Watir? (that being said, every execution, every time, yields identical HTML in view source).I use Watir to test asp.net applications, so it can be done. Can

Re: [Wtr-general] Wtr-general Digest, Vol 35, Issue 27

2006-10-25 Thread Roger Studner
This is going to be messy.. but testing ASP.NET stuff:Here is the HTML.. this is the 'left frame' of my application.. the frame's name is contents!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleContents/title meta content=Microsoft Visual Studio .NET 7.1 name=GENERATOR

[Wtr-general] same id elements

2006-10-25 Thread Luke
hi is it possible to catch elements which have same type of id e.g. ie.link(:id, /regularexpression/) and catch the index somehow? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Handling multiple versions of a website [advice needed]

2006-10-25 Thread Chris McMahon
On 10/25/06, John Lolis [EMAIL PROTECTED] wrote: Thanks for the input davemunns, its nice to hear from someone who is so far along in a project.My only real fear is that of maintaining such a giant library. If you were to leave your company tomorrow, would someone be able to pick it up in time

[Wtr-general] How to access link in table cell?

2006-10-25 Thread Christian Baumann
Hello! I have html-code like the following: === snip === tda href=http://www.happy.com/test.hmtl;text/a/td === snap === Now my question: I want to get the value of the href-attribute within this table-cell for further using. Any ideas/ suggestions how to get this? Thanks in advance, Christian

Re: [Wtr-general] same id elements

2006-10-25 Thread Paul Rogers
in one of the apps I work on, we had a problem where the java framework would sometimes put the same id on 2 or more elements. We wrote an error checker that simply lloked for duplicate ids, and raised an exception if one was found. I guess i have the advantage that the developers are willing

Re: [Wtr-general] How to access link in table cell?

2006-10-25 Thread Željko Filipin
ie.link(:text, text).hrefZeljko-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to access link in table cell?

2006-10-25 Thread Charley Baker
Hey Christian, Try something along these lines: irb(main):019:0 require 'watir' irb(main):019:0 include Watir irb(main):019:0 ie = IE.start('http://www.google.com') = #Watir::IE:0x2f2c480 # Get the table cell, pull the first link's href, there are a few links in this cell irb(main):020:0

Re: [Wtr-general] Handling multiple versions of a website [advice needed]

2006-10-25 Thread Bret Pettichord
John Lolis wrote: Has anyone thought of a good way of managing such changes? Do you make one giant 'mapping' class and just update that as needed? Do you store the Watir calls and generate code around them? I have a library of some 1250 lines of code. Although some of it was written as

Re: [Wtr-general] Question from a newbie

2006-10-25 Thread Cain, Mark
Forgive me, but yes (I my opinion) you did. Is this forum for a ruby framework that is exclusively for IE? And doesn't ALL the tests that are written and run, run in IE? This thread was started by a question about how to handle duplicate element ID's on a page--a behavior allowed in IE--and

Re: [Wtr-general] Wtr-general Digest, Vol 35, Issue 27

2006-10-25 Thread Paul Carvalho
Hmm, that's an interesting problem. When I first evaluated Watir to see if it would work with our .Net web app, it was important to figure out how to work with our tree control. Each tree control/library out there is different and none of the referenced examples that I could find worked for me.

Re: [Wtr-general] How to access link in table cell?

2006-10-25 Thread Christian Baumann
Hello Charley, thanks, that works fine. Kind Regards, Christian Charley Baker schrieb: Hey Christian, Try something along these lines: irb(main):019:0 require 'watir' irb(main):019:0 include Watir irb(main):019:0 ie = IE.start('http://www.google.com') = #Watir::IE:0x2f2c480 #

Re: [Wtr-general] Error selecting links within nested iFrame?

2006-10-25 Thread Paul Carvalho
I'm running Watir 1.4.1 (from Windows Installer) and Ruby 1.8.4-16 on my main machine.I copied your iframe_nested.html files into my C:\Scripts\1.4.1\unittests\html folder, and renamed your rb file to frame_test_Ethan.rb and placed it in my unittests folder. To begin with, I re-ran the standard

Re: [Wtr-general] ASP.NET, frames

2006-10-25 Thread Lonny Eachus
Just looking at your "html" briefly, I would guess that what you are looking at is not actually the HTML of the generated page, but rather the source before the HTML elements are generated by the script and rendered by the browser. There is a very big difference. You need to determine the

Re: [Wtr-general] Error selecting links within nested iFrame?

2006-10-25 Thread Ethan Jewett
Thanks Paul, for confirming that this works. I'll close my bug. The problem I was seeing originally must be unrelated to the click method on links in frames. I'm trying to test pages generated by SAP WebDynPro ABAP components, which is a real pain, so it's likely that I missed something in