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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -