[Wtr-general] Problem with element_by_xpath?

Alan Ark arkie at compli.com
Fri Sep 15 14:32:21 EDT 2006


Hi folks.

 

I am having a problem getting element_by_xpath to work cleanly.

 

Windoze XP pro

Ruby 1.8.5 - One click installer.

Watir 1.5.1.1081 - gem install

Rexml 3.1.5 

 

I've attached by browser to google.com.

 

>From irb :

elem=ie.element_by_xpath("//text_field[@name=q]")

 

returns

REXML::ParseException: #<Iconv::IllegalSequence: "\n< <SNIP>....

...

</SNIP>

Line:

Position:

Last 80 unconsumed characters:

 <HTML> <body  text="#000000" vLink="#551a8b" aLink="#ff0000" link="#0000cc" bgCo

        from c:/ruby/lib/ruby/site_ruby/1.8/rexml/parsers/treeparser.rb:89:in `parse'

        from c:/ruby/lib/ruby/site_ruby/1.8/rexml/document.rb:190:in `build'

        from c:/ruby/lib/ruby/site_ruby/1.8/rexml/document.rb:45:in `initialize'

        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./Watir.rb:1990:in `new'

        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./Watir.rb:1990:in `create_rexml_document_object'

        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./Watir.rb:1972:in `rexml_document_object'

        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./Watir.rb:2174:in `elements_by_xpath'

        from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1081/./Watir.rb:2167:in `element_by_xpath'

 

Should I try a different Watir gem version?  Other suggestions?

 

Thanks

-Alan

 

   _____  

Alan Ark | Lead QA Engineer | Complí | HYPERLINK "mailto:arkie at compli.com"arkie at compli.com | office: 503.294.2020 | fax: 503.294.1200 | HYPERLINK "http://www.compli.com/"www.compli.com 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/448 - Release Date: 9/14/2006
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060915/db810aa0/attachment.html 


More information about the Wtr-general mailing list