Hi All,

I have a question about IE automation in perl. I did gone through win32::ole and win32::ieautomation but both of them talkes about navigating a specific page and fetching the result from it. Instead of this I want to open up a IE browser->write my result->save->close it much like what we do in case of perl excel, but I am not able to figure out how to write the result in the browser document ...

Code I have been managed so far ... with the help of http://www.perlmonks.org/?node_id=393252
#!/bin/perl use strict; use Win32::OLE qw( EVENTS in with valof ); use Win32::OLE::Variant; Win32::OLE->Option( Warn => 0 ); my $IE = Win32::OLE->GetActiveObject( 'InternetExplorer.Application' ) +; if( ! defined $IE ) { print "Can not find open object. Creating one...\n"; $IE = Win32::OLE->new( 'InternetExplorer.Application', "Quit" ) or die "Unable to create a IE Object\n"; } Win32::OLE->WithEvents( $IE,'DWebBrowserEvents2' ); $IE->{Visible} = 1; $IE->{RegisterAsDropTarget} = 1; $IE->{RegisterAsBrowser} = 1; my $Doc = $IE->{Document}; ### This is what I am trying to print the line to he browser page....S +orry, have not much idea ### $Doc->{value} = "This is test automation page"; my $filename="test_auto.html"; $IE->SaveAs($filename); $IE->Quit();

Do you have any idea, how to move further ... please help.

Thanks,

In reply to IE Automation by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.