Skip to main content

untilSwitchedToFrame

Waits until frame at given index or 'returned by the selector' is available and webdriver has switched to it.

untilSwitchedToFrame(index)
# Or
untilSwitchedToFrame(using, by)
# Or
untilSwitchedToFrame(elemId, using, by)

Uses Element access timeout.

Parameters#

  • index: Zero based index of the desired frame.
  • using: string selector used to search the frame. See details of using.
  • by: by constant. The type of selector. See details of by.
  • elemId: Element that must be the parent of the desired frame. Search for the frame starts from here.

Returns#

  • boolean true if expectation fulfills