FrameActions
Static methodsâ
onFrame
â
This will return IFrameActions
which will expose different methods to handle IFrames.
IFrameActions frameActions = FrameActions.onFrame ();
Instance methodsâ
switchTo (name)
â
This method will switch to the given frame by it's name / ID.
import static io.github.boykaframework.actions.drivers.FrameActions.onFrame;
. . .
onFrame ().switchTo ("frame-name-or-id");
tip
In order to come out of this frame, use switchToParent
method.
switchTo (index)
â
This method will switch to the given frame by it's index.
import static io.github.boykaframework.actions.drivers.FrameActions.onFrame;
. . .
onFrame ().switchTo (1);
tip
In order to come out of this frame, use switchToParent
method.
switchToParent
â
This method will switch to the parent frame of the current frame. This method is used to come out of any iframe.
import static io.github.boykaframework.actions.drivers.FrameActions.onFrame;
. . .
onFrame ().switchToParent ();