in reply to How to use IEAutomation with iframes?
Though I can't cite a reference, offhand, and thus am uncertain that my recall is accurate, I believe I discovered some years ago that some authorities deprecate use of id="xyz" as the sole ident in an html tag "attribute=value" pair. The rationale, IIRC, is that some tools fail to parse it correctly (perhaps, ??, because of a conflict with use of id in css??
In any case, I have utilized the proposed cure -- namely, adding name="xyz" (where xyz is identical to the value in the id="xyz") -- and that has consistently worked, over multiple sites, browsers, versions and hosts.
I conceed, this may be OT or even irrelevant, but your statement
Using 'name:' works!
$ie->getFrame('name:', 'info')->getImage('id:', "selBtn2")->Click();
leads me to suspect you control the website content and could thus make the necessary changes... perhaps even fairly painlessly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use IEAutomation with iframes?
by zerocred (Beadle) on Mar 12, 2010 at 00:50 UTC | |
by zerocred (Beadle) on Mar 13, 2010 at 10:36 UTC | |
by zerocred (Beadle) on Mar 13, 2010 at 10:57 UTC | |
by Anonymous Monk on Mar 13, 2010 at 10:59 UTC | |
by zerocred (Beadle) on Mar 13, 2010 at 11:24 UTC |