autoit - Can't retrieve links inside Frame -
i trying use autoit retrieve data website:
http://www.acgme.org/adspublic/default.asp
unfortunately, page uses frames , i'm having trouble navigating page data is.
the link "accredited programs"
#include <ie.au3> $url="http://www.acgme.org/adspublic/" $myiexplorer=_iecreate($url,1,1,1,1) local $theframe = _iegetobjbyid($myiexplorer,"control") msgbox(0,"the frame",$theframe.src) local $olinks = _ielinkgetcollection($theframe) msgbox(0, "link count", @extended & " links found")
when run code above, able populate $theframe
correct frame object houses "accredited programs" link, that's far can get. $olinks
collection comes empty.
frames rather special. use _ieframegetobjbyname instead.
#include <ie.au3> $url="http://www.acgme.org/adspublic/" $myiexplorer=_iecreate($url,1,1,1,1) local $theframe = _ieframegetobjbyname($myiexplorer,"control") local $olinks = _ielinkgetcollection($theframe) msgbox(0, "link count", @extended & " links found")
Comments
Post a Comment