I know that you can use assertElementPresent to verify whether an element exists, but I couldn’t find any equivalent for frames. The only command I can see is selectFrame but if I select a frame that doesn’t exist, the macro would crash and stop: e.g. if there’s no frame on a page and if I do selectFrame index=2, kaboom, I just killed the run.
So is there a way to count/list the number of frames and iframes on a page?
Thank you in advance
(1) “… but if I select a frame that doesn’t exist, the macro would crash and stop” => Catch the error if no frame exists with
store | true | !errorignore
(2) Search the source code with
Oh thank you, I didn’t know about the (1) catch tip