Testing with frames

I know, frames are evil, frames are completely out, etc. but I want to test a site with frames. Is it possible, and if yes, how? I haven’t found anything on the subject …

You should be able to just test the site, regardless if it has frames or not. The requests will not identify what frame they belong to but they should all show up in the waterfall and the page will complete after all of the frames have loaded.

Yes I can test the “first” display of all frames, but how can I use scripting for further investiguations, by example filling login and password who are in a certain frame. I have tried making a script with the docs found in the wiki, but obviously it don’t work because I don’t know how to reference the input field of a form in a particular frame.

You shouldn’t have to target a specific frame, the code walks all of the frames on the document looking for the fields you specify (having a unique attribute or ID is required though). Can you e-mail me the url for the page you are trying to script (if it is public) and I’ll take a crack at it (pmeenan@webpagetest.org).


FYI, we got the script working offline. No problem with frames but scripting pages can be tricky and sometimes you have to try a couple of different things to get it working (simulate clicks instead of form submissions if there are js even handlers attached to buttons, etc).

All is good :slight_smile:

As always, feel free to reach out to me if you have any questions, particularly when it comes to scripting which is insanely complicated (yes, my fault).