Which technique should be considered in the script “if there is neither frame id nor frame name”?

Which technique should be considered in the script “ if there is neither frame id nor frame name ”?

If non of the above are available, we can use “frame by index” technique, which can be considered in the script.