1

I'm executing the following macro from inside VB.net using the iMacros component for .NET

VERSION BUILD=10.4.28.1074
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6900914
SET !WAITPAGECOMPLETE YES 
WAIT SECONDS=10 
TAG POS=1 TYPE=H1 ATTR=* EXTRACT=TXT

This retrieves the name of the manuscript from IEEE Xplore. This works perfectly from inside the iMacros browser/editor. But, when executing the script from inside Vb.net, it gives me a "#EANF#" (Extraction Anchor Not Found).

I'm confounded.

hexcode
  • 393
  • 1
  • 4
  • 13

1 Answers1

1

I found the problem.

The difference in behavior was because the site (here, IEEE Xplore), does not allow browsing from old browsers. Now, the iMacro browser works under IE 7's name. All you need to do is to add your program to the "browser emulation list", thus morphing your iMacros component browser to "look" like a newer browser for those websites that need it.

You'll find all the details on how to do that here: How do I turn off Compatibility View on the IE WebBrowserControl in a WinForms app?

Community
  • 1
  • 1
hexcode
  • 393
  • 1
  • 4
  • 13