FrameFinder

class pyjt.FrameFinder

Bases: object

static find(locator=None, **kwargs)

Find a frame by a locator or frame attributes.

Parameters:
  • locator (Locator) – Locator to find a frame.

  • **kwargs – Search filters by keyword arguments.

Raises:

ElementNotFoundError – No frame was found matching the given search criteria.

Returns:

The first frame in the list of frames matching the search criteria.

Return type:

Frame

static inspect() dict

Inspect all available windows.

Returns:

A dictionary tree of all ui components of all available frames.

Return type:

dict

static root()

Determine the root window.

Returns:

The root window

Return type:

Frame

static waitFor(locator=None, **kwargs)

Wait timeout seconds for the given frame to appear