arjuna.tpi.guiauto.widget.frame module

class arjuna.tpi.guiauto.widget.frame.GuiFrame(gui, wmd, parent=None)

Bases: object

Represents an IFrame the Gui.

Not meant to be directly created. It is created using calls from Gui object or GuiNamespace object of Gui.

Parameters
  • guiGui object containing this GuiDropDown.

  • wmdGuiElementMetaData object for this GuiDropDown.

Keyword Arguments

parentGuiElement in case it is found inside a GuiElement. Default is the Gui object.

dropdown(fargs=None, **kwargs) GuiDropDown

Locate a GuiDropDown.

Keyword Arguments
  • fargs – A dictionary of key-value pairs for formatting the GuiWidgetDefinition. Use .format(kwargs).wait_until_absent for more Pythonic code when formatting.

  • **kwargs – Arbitrary key-value pairs used to construct a GuiWidgetDefinition

Returns

GuiDropDown object.

element(*, fargs=None, **kwargs) GuiElement

Locate a GuiElement.

Keyword Arguments
  • fargs – A dictionary of key-value pairs for formatting the GuiWidgetDefinition. Use .format(kwargs).wait_until_absent for more Pythonic code when formatting.

  • **kwargs – Arbitrary key-value pairs used to construct a GuiWidgetDefinition

Returns

GuiElement object.

exit()
property gns

Gui Namespace (GNS) object for this GuiFrame.

property gui: Gui

Gui object containing this GuiFrame.

locate(locator)

Locate a GuiWidget.

Parameters
  • locatorGuiWidgetDefinition object.

  • Returns – An object of type GuiWidget. Exact object type depends on the value of type attribute in GuiWidgetDefinition.

multi_element(fargs=None, **kwargs) GuiMultiElement

Locate a GuiMultiElement.

Keyword Arguments
  • fargs – A dictionary of key-value pairs for formatting the GuiWidgetDefinition. Use .format(kwargs).wait_until_absent for more Pythonic code when formatting.

  • **kwargs – Arbitrary key-value pairs used to construct a GuiWidgetDefinition

Returns

GuiMultiElement object.

radio_group(fargs=None, **kwargs) GuiRadioGroup

Locate a GuiRadioGroup

Keyword Arguments
  • fargs – A dictionary of key-value pairs for formatting the GuiWidgetDefinition. Use .format(kwargs).wait_until_absent for more Pythonic code when formatting.

  • **kwargs – Arbitrary key-value pairs used to construct a GuiWidgetDefinition

Returns

GuiRadioGroup object

property source: arjuna.tpi.guiauto.source.element.GuiElementSource

GuiSource for this GuiDropDown (source of root element).