There doesn't appear to be anything inherently useful without looking at the actual api. Btw, I'd highly recommend this library when looking at win32ole objects, it's pretty slick: win32ole pretty print http://rubyforge.org/projects/win32ole-pp
If you do use the win32ole pretty print library you could hack out a check that the string returned by ie.ie.document.to_s contains IAcroAXDocShim. Hacky, but without looking at it more..... -Charley On 3/20/07, Paul Rogers <[EMAIL PROTECTED]> wrote:
does the acrobat activeX control provide anything useful, like a .text method? Interesting, I'm using Watir 1.5.1.1161 and getting a different error. A Win32OLERuntimeError, bombing out with unknown property or method 'readyState' which makes sense since we're calling readyState on the document. I can get the url of the ie object, but obviously since it's not an html page you won't be able to tell much else about it. The "document" on the ie container is an Acrobat ActiveX control which you won't really be able to interact with. Offhand, I don't have any great ideas on how you can check this. Maybe through the url if they're different? -c On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Greetings: > > I'm using ruby 1.8.4 and watir 1.5.1. > > I am testing a series of pages that result in the viewing of a pdf > document within the browser. My intent is to test that the pdf can be > viewed under some circumstances and cannot be viewed under another set > of circumstances. > > However, when I @ie.goto(@pdf_serving_url) the ie window successfully > navigates to the pdf and acrobat loads, but watir bails out with the > following error: > > 1) Error: > test_sectionServletAllowed(SectionServletTest): > WIN32OLERuntimeError: unknown property or method `documentelement' > HRESULT error code:0x80020006 > Unknown name. > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1337:in > `method_missing' > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1337:in > `page' > C:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1158/./watir.rb:1348:in > `text' > C:/ruby/lib/ruby/gems/1.8/gems/watir- 1.5.1.1158/./watir.rb:1400:in > `contains_text' > > C:/cygwin/home/jason.yankus/projects/edis3-search/src/test/watir/Section > ServletTest.rb:63:in `test_sectionServletShowsPublic' > > Any advice? > > -jason > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
