c4mpi Posted March 16, 2010 Share Posted March 16, 2010 Hi, I need to use IEclickbytxt on a internet page where there is 3 different frames. ( I have no framenames ) Link to comment Share on other sites More sharing options...
D1Spartan Posted March 16, 2010 Share Posted March 16, 2010 I'm also having a problem with this, although my frames are embedded a lot deeper. What I would suggest is viewing the source and retrieving the frame name first. Take a look at the _IEFrameGetObjByName () function, and then you might be able to reference that frame when using _IELinkClickByText () function. Not sure if it will work but it's worth at try. If you can, post the html source here. Link to comment Share on other sites More sharing options...
c4mpi Posted March 16, 2010 Author Share Posted March 16, 2010 (edited) okey, got no framename but I tried this code #include <IE.au3> WinActivate("Internetpage") $oIE = _IEAttach("Internetpage") $sMyString = "txt" $oLink = _IEGetObjById ($oIE, "Main") $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") EndIf Failed EDIT: Ofcourse I did, should use _IEFRAMEGETCOLLECTION as a replacement for _IEGetObjByID I'm also having a problem with this, although my frames are embedded a lot deeper. What I would suggest is viewing the source and retrieving the frame name first. Take a look at the _IEFrameGetObjByName () function, and then you might be able to reference that frame when using _IELinkClickByText () function. Not sure if it will work but it's worth at try. If you can, post the html source here. Edited March 16, 2010 by c4mpi Link to comment Share on other sites More sharing options...
D1Spartan Posted March 16, 2010 Share Posted March 16, 2010 It will probably depend on how the page is written itself...if you put the source for the webpage on a reply, I may be able to figure something out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now