Skip to main content


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

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

Uses Element access timeout.


  • 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.


  • boolean true if expectation fulfills