Version

xamColorPicker - Recordable Methods

Topic Overview

Purpose

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

In this topic

This topic contains the following sections:

xamColorPicker Test Object Recordable Methods Summary

Recordable methods summary chart

The following table briefly explains the recordable methods for testing the control. Detailed information about the methods is provided in the text blocks following the table.

Method Description

Sets the selected color to the xamColorPicker.

SetColor Method

Description

The SetColor method sets the selected color to the xamColorPicker control. It records and replays the color selection action performed by the user.


Details

This method takes as an argument either the color code or its predefined color name (for example, either #FFFF0000 or Red, #FFD3D3D3 or LightGray, #FF00008B or DarkBlue ).


Parameters

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

Method parameter Description

Color code

(default)

Using a color code as a parameter:

Example

Setting the xamColorPicker color to red:

WpfWindow("MainWindow").XamColorPicker("colorPicker").SetColor "#FFFF0000"

Color name

Using the predefined color name as a parameter:

Example

Setting the xamColorPicker color to red:

WpfWindow("MainWindow").XamColorPicker("colorPicker").SetColor "Red"


Default setting

The color setting action is recorded with the color code passed as a parameter.


Possible exceptions

No known exceptions.

The following table lists other topics you may find useful.

Topic Purpose

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

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

This topic provides reference information about the inspectable test object properties of the xamColorPicker™ control.

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