Skip to main content

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 ();