ubuntuuitoolkit Package

emulators Module

class ubuntuuitoolkit.emulators.ActionSelectionPopover(*args)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

ActionSelectionPopover Autopilot emulator.

click_button_by_text(text)[source]

Click a button on the popover.

XXX We are receiving the text because there’s no way to set the objectName on the action. This is reported at https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1205144 –elopio - 2013-07-25

Parameters:text – The text of the button.
class ubuntuuitoolkit.emulators.Header(*args)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

Header Autopilot emulator.

switch_to_next_tab()[source]

Open the next tab.

class ubuntuuitoolkit.emulators.MainView(*args)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

MainView Autopilot emulator.

close_toolbar()[source]

Close the toolbar if it’s opened.

get_action_selection_popover(object_name)[source]

Return an ActionSelectionPopover emulator.

Parameters:object_name – The QML objectName property of the popover.
get_header()[source]

Return the Header emulator of the MainView.

get_tabs()[source]

Return the Tabs emulator of the MainView.

get_toolbar()[source]

Return the Toolbar emulator of the MainView.

open_toolbar()[source]

Open the toolbar if it’s not already opened.

Returns:The toolbar.
switch_to_next_tab()[source]

Open the next tab.

Returns:The newly opened tab.
switch_to_previous_tab()[source]

Open the previous tab.

Returns:The newly opened tab.
switch_to_tab(object_name)[source]

Open a tab.

Parameters:object_name – The QML objectName property of the tab.
Returns:The newly opened tab.
switch_to_tab_by_index(index)[source]

Open a tab.

Parameters:index – The index of the tab to open.
Returns:The newly opened tab.
class ubuntuuitoolkit.emulators.TabBar(*args)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

TabBar Autopilot emulator.

switch_to_next_tab()[source]

Open the next tab.

class ubuntuuitoolkit.emulators.Tabs(state_dict, path)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

Tabs Autopilot emulator.

get_current_tab()[source]

Return the currently selected tab.

get_number_of_tabs()[source]

Return the number of tabs.

class ubuntuuitoolkit.emulators.Toolbar(*args)[source]

Bases: ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase

Toolbar Autopilot emulator.

click_button(object_name)[source]

Click a button of the toolbar.

Parameters:object_name – The QML objectName property of the button.
exception ubuntuuitoolkit.emulators.ToolkitEmulatorException[source]

Bases: exceptions.Exception

Exception raised when there is an error with the emulator.

class ubuntuuitoolkit.emulators.UbuntuUIToolkitEmulatorBase(state_dict, path)[source]

Bases: autopilot.introspection.dbus.CustomEmulatorBase

A base class for all the Ubuntu UI Toolkit emulators.

ubuntuuitoolkit.emulators.get_pointing_device()[source]

Return the pointing device depending on the platform.

If the platform is Desktop, the pointing device will be a Mouse. If not, the pointing device will be Touch.

Table Of Contents

Previous topic

Welcome to ubuntu-ui-toolkit-autopilot’s documentation!

This Page