1 Jul 2003 23:15
Driving an IE file browser control from Automation
Test-firsters:
I cross-posted because it's a hard one! (FitNesse gets this because
someone's doing something similar there, so helping me helps them.)
I'm trying to drive InternetExplorer's Automation model, this time thru
Perl.
(Among other battles, I don't know how to query from Perl the list of
members of an object, or an OLE object.)
The code starts IE as a COM (ActiveX, whatever) object. Then it navigates to
a server (possibly a buggy one!).
The sub findField(type, name) finds an <INPUT> field of the given type and
name.
We find the DOM object fronting this HTML:
<input size="72" value="" name="file" type="file">
Note the type is "file" - that creates the little "Browse" button that lets
you
Then, we try to change the field's value attribute from nothing to a sample
string...
# see http://samie.sourceforge.net for more examples of code like this
use strict;
(Continue reading)
Interestingly, "deep abstractions" went as "des abstractions plus
profondes", meaning "more profound abstractions". And the XP-France Wiki did
not yet have a BarreVerte page.
Liberte Egalite et Fraternite, dudes!
--
Phlip
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
RSS Feed