Version

xamOutlookBar - Replay-Only Methods

Topic Overview

Purpose

This topic provides reference information about the replay-only user methods for testing the xamOutlookBar™ control.

In this topic

This topic contains the following sections:

xamOutlookBar Test Object Replay-Only Methods

Replay-only methods summary chart

The following table briefly explains the replay-only methods for testing the control. Detailed information about the methods is provided below the table.

Method Description

Clicks on the specified item at the specified location.

ClickSubItem Method

Description

The ClickSubItem method replays the click user action performed on a specified item at a specifed location.

Details

This is a common method for most of the supported controls that have sub-items. By default, this is a replay-only method, but it can be recorded in sub-items.

Parameters

The following table explains the method’s parameters along with some sample code.

Method Parameter Description

Sub Item Type

( required )

The sub-item type parameter can take one of the following options that define an area in the control:

• OutlookBarGroup = 0,

• SelectedGroupHeader = 1,

• SelectedGroupContent = 2,

• OverflowArea = 3,

• NavArea = 4

The method can accept either the string interpretation or the index as a parameter.

Sub-item

( required )

The sub-item is the targeted element that will be clicked.

Region (Optional)

The Region parameter can take one of the following options:

  • igTopLeft,

  • igTopCenter,

  • igTopRight,

  • igMidLeft,

  • igMidCenter,

  • igMidRight,

  • igBottomLeft,

  • igBottomCenter,

  • igBottomRight,

  • igAt,

  • igPercent

Modifier 1

(Optional)

Modifier 2

( Optional)

The exact location is defined by the region parameter or by the combination of region and modifiers. Through the modifiers, you specify an offset in the region.

Example

Click on the xamOutlookBar’s group with header “Calendar” in its center:

WpfWindow("MainWindow").XamOutlookBar("xamOutlookBar").ClickSubItem OutlookBarGroup, "Calendar", igMidCenter

Default setting

No default setting.

Possible exceptions

The following table lists the possible exceptions for the method and the reason that is likely to be causing them.

Exception name Exception description Possible reasons

The following item was not found.

The selected tab cannot be located when replaying the method.

  • The tab has been closed already.

  • The tab doesn’t exist.

Related Content

Topics

The following table lists other topics you may find useful.

Topic Purpose

This topic provides information about the user actions of the xamOutlookBar control which you can test and the elements you can inspect.

This topic provides reference information about the recordable user methods for testing the xamOutlookBar control.

This topic provides reference information about the test object properties of the xamOutlookBar control that can be inspected.

This topic provides reference information about the proxy class that supports the testing of the xamOutlookBar control in Micro Focus Unified Functional Testing software.