Help with IE Framesets

Recommended Posts

Working on a project for a server that I have to login to and create users and want to automate it. I have the logging in part done, but then I have a problem, the page has 2 framesets I believe one inside the other. I have the FrameSet ID name that I need to get to. Then there are 4 frames inside it. I need to go to the 4th Frame. In the body of this frame are three tables, I need the first one. Then there are 3 TRs inside the table. I need the 3rd TR then the second TD, then there is a DIV that has a UL Class of TOC. Then there is a list of LI Class TOC within there. Each one has an A Class and UL Class. I need to be able to select the 1st LI Class then the then the A Class which has the Text that I have been trying to do clicks on but unsuccessfully. I am not looking for someone to code this for me but just a small guidence as to how to assure I am grabbing the right frame set and then getting through the tables. I got this info from the DOM in the IE Deve Toolbar. I have been fine in the past doing small scripts with IE but it has always been with forms and not frames. Yes I have looked in the help files and I just have not been able to work this by what I have read so far. Been doing this for a few days now and starting to get aggrivated

This returns 5 frames and I am able to see the url of them. Do I need to set each frame with it's own variable or can I use ($oFrame,1) to reference that particular frame, instead of showing the url what line would show the actual name of the frame so you can use _IEFrameGetObjByName, in the help file the url, by using the _IEPropertyGet, is the only thing that looks helpful pertainning to the frame itself.

I have the frameset names from the DOM, the one that I need is STMainFrame2. Then the frames below that have no names, but there are four of them.

So I could use

$oFrame = _IEFrameGetObjByName ($oIE, "STMainFrame2") to reference that frame correct. Then when trying to get any other frames (collecting) instead of using $oIE I would use $oFrame. Would this logic be correct.

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post

Share on other sites

When I use that nothing changes if I use the IETagNameGetCollection with $NavForm as a reference it returns with the same information as if I was still referencing the entire page and not the frame the @extended of the GetObjbyname returns a 1.

Also with the "$oFrames = _IETagNameGetCollection ($oIE, "frame")" I should be able to use TR right, how about any of the classes such as UL or A.

Share this post

Link to post

Share on other sites

When I use that nothing changes if I use the IETagNameGetCollection with $NavForm as a reference it returns with the same information as if I was still referencing the entire page and not the frame the @extended of the GetObjbyname returns a 1.

This is the only one that I have a problem with, I am almost done this little application and this is the only thing I have a problem with. I got the link name (text) from the DOM just like the others and I get a no match error in the console. Any ideas?