[Wtr-general] HTML Pages with bad XML

2007-01-31 Thread John Castellucci
Howdy all, I'm working on a short project where I am parsing a page that happens to contain some nodes that cause REXML to die -- some specific examples are: <[EMAIL PROTECTED] _extended="true" /> The nodes with @, : and , all throw: c:/ruby/lib/ruby/site_ruby/1.8/rexml/parsers/treeparser.rb:

Re: [Wtr-general] Using file_field

2006-08-24 Thread John Castellucci
I've used file_field a bunch -- the IE File Open dialog touchy. My workaround was to always use a full path with no spaces, such as: $ie.file_field(:id, 'upload').set('c:\\testfiles\\uploadme.txt') ___ Wtr-general mailing list Wtr-general@rubyforge.o

Re: [Wtr-general] Watir, file_field, dojo and VMware

2006-07-27 Thread John Castellucci
Bret asks: >What is a "ruby attach dialog"? I was referring to the DOS/ruby.exe window that opens and scrolls through all the window captions until it finds the File Open dialog. >I'd be surprised if vmWare itself is the source of your problem. I'm pretty >sure we have people here who have used i

[Wtr-general] Watir, file_field, dojo and VMware

2006-06-26 Thread John Castellucci
Howdy all – I have some Watir tests that invoke the file_field field object, and I’ve noticed some slightly odd behavior when running on native WinXP vs. virtual WinXP through VMware.   If a regular page has a file_field control, everything works peachy.   But, the application also has

Re: [Wtr-general] [question] Setting timeout for a ie.wait method?

2006-06-01 Thread John Castellucci
I had a similar requirement and addressed it by adding my methods to the Element class.  This may not be the best solution, but it worked for me.   module Watir class Element     def click_wait(how_long = 30)     wait_for(how_lon

[Wtr-general] General XPath Question

2006-05-22 Thread John Castellucci
I’ve been crawling through xpath for the last couple of weeks, but I’ve been unable to solve a real basic problem I am having locating desired objects.     As a background, the application I am automating makes extensive use of AJAX, _javascript_, Dojo and DWR, so the DOM gets complex.  

Re: [Wtr-general] [question] access denied OLE error code:80070005

2006-05-09 Thread John Castellucci
>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 sym

Re: [Wtr-general] Application Map

2006-04-27 Thread John Castellucci
Bret Pettichord wrote: >I am thinking of adding a Map class to Watir. Here's how it would work... I found this an interesting problem, and as it applied to something I was doing at work, I wanted to give it a stab. Below is my "hack" at a Map class. It only works in Watir 1.5. So, how many rule