Object Model Reference for GUI Testing > Siebel > CancelPopup Method

SiebCalendar Object

Description

A calendar control in a Siebel test automation environment.

Operations

The sections below list the built-in methods and properties that you can use as operations for the SiebCalendar object.

Note: You can also view a list and descriptions of the SiebCalendar description properties, for use in object repository descriptions, programmatic descriptions, checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods.

Methods

Method CancelPopup Closes the calendar popup applet without saving changes (for example, by clicking the Cancel button).
Common Method CaptureBitmap Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension.
Common Method Check Checks whether the actual value of an item matches the expected value.
Common Method CheckProperty Checks whether the specified object property achieves the specified value within the specified timeout.
Common Method ChildObjects Returns the collection of child objects contained within the object.
Method ClosePopup Closes the calendar popup applet after saving changes (for example, by clicking the Save button).
Common Method GetROProperty Returns the current value of the specified description properties from the object in the application.
Common Method GetTOProperties Returns the collection of properties and values used to identify the object.
Common Method GetTOProperty Returns the current value of the specified description properties from the object in the application.
Method NextMonth Changes the displayed month in the calendar popup applet to the next month (for example, from February to March).
Method OpenPopup Opens the calendar popup applet.
Common Method Output Retrieves the current value of an item and stores it in a specified location.
Method PrevMonth Changes the displayed month in the calendar popup applet to the previous month (for example, from April to March).
Common Method RefreshObject Instructs UFT to re-identify the object in the application the next time a step refers to this object.
Method SelectTimeZone Sets the Time Zone in the open calendar popup applet.
Method SetDay Sets the Day in the open calendar popup applet.
Method SetMonth Sets the Month in the open calendar popup applet.
Method SetText Enters text in the parent control for the calendar.
Method SetTime Sets the Time in the open calendar popup applet.
Common Method SetTOProperty Sets the value of the specified description properties in the test object description.
Method SetYear Sets the Year in the open calendar popup applet.
Common Method ToString Returns a string that represents the current test object.
Common Method WaitProperty Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step.

Properties

Property CalendarType The type of calendar.
Property ClassName The class of the object.
Property Day The current day in the open calendar control.
Common Property Exist Checks whether the object currently exists in the open application.
Property IsEnabled Indicates whether the object is enabled.
Property IsOpen Indicates whether the associated popup applet is open.
Property IsRequired Indicates whether the object is required.
Property Month The current month in the open calendar control.
Property RepositoryName The name of the object as it is stored in the repository.
Property Text The text value of the object.
Property Time The current time in the open calendar control.
Property TimeZone The current time zone in the open calendar control.
Property TimeZoneCount The number of time zones in the time zone picklist for the open calendar control.
Property UIName The name of the object as it is appears in the user interface.
Property Year The current year in the open calendar control.

 

Back to top

CancelPopup Method

Description

Closes the calendar popup applet without saving changes (for example, by clicking the Cancel button).

Syntax

object.CancelPopup

Return Type

None.

Example


 

Back to top

ClosePopup Method

Description

Closes the calendar popup applet after saving changes (for example, by clicking the Save button).

Syntax

object.ClosePopup

Return Type

None.

Example


 

Back to top

NextMonth Method

Description

Changes the displayed month in the calendar popup applet to the next month (for example, from February to March).

Syntax

object.NextMonth

Return Type

None.

IMPORTANT

Before running this method, ensure that the calendar is open in the application.  For example, add a SiebCalendar.OpenPopup method immediately prior to the NextMonth step, or include the NextMonth step in an If statement that checks whether the calendar exists.

Example


 

Back to top

OpenPopup Method

Description

Opens the calendar popup applet.

Syntax

object.OpenPopup

Return Type

None.

Example


 

Back to top

PrevMonth Method

Description

Changes the displayed month in the calendar popup applet to the previous month (for example, from April to March).

Syntax

object.PrevMonth

Return Type

None.

IMPORTANT

Before running this method, ensure that the calendar is open in the application.  For example, add a SiebCalendar.OpenPopup method immediately prior to the PrevMonth step, or include the PrevMonth step in an If statement that checks whether the calendar exists.

Example


 

Back to top

SelectTimeZone Method

Description

Sets the Time Zone in the open calendar popup applet.

Syntax

object.SelectTimeZone (ItemName)

Arguments

Parameter Description
ItemName Required. A String value.
The Time Zone value in the format "(GMT-09:00) Alaska".

Return Type

None.

Example


 

Back to top

SetDay Method

Description

Sets the Day in the open calendar popup applet.

Syntax

object.SetDay (Day)

Arguments

Parameter Description
Day Required. A long integer value.
The new day value.

Return Type

None.

Example


 

Back to top

SetMonth Method

Description

Sets the Month in the open calendar popup applet.

Syntax

object.SetMonth (Month)

Arguments

Parameter Description
Month Required. A long integer value.
The new month value.

Return Type

None.

Example


 

Back to top

SetText Method

Description

Enters text in the parent control for the calendar.

Syntax

object.SetText (Text)

Arguments

Parameter Description
Text Required. A String value.
The text to enter

Return Type

None.

Example


 

Back to top

SetTime Method

Description

Sets the Time in the open calendar popup applet.

Syntax

object.SetTime (Time)

Arguments

Parameter Description
Time Required. A String value.
The new time value.

Return Type

None.

Example


 

Back to top

SetYear Method

Description

Sets the Year in the open calendar popup applet.

Syntax

object.SetYear (Year)

Arguments

Parameter Description
Year Required. A long integer value.
The new year value.

Return Type

None.

Example


 

Back to top

CalendarType Property

Description

The type of calendar.

Syntax

object.CalendarType

Value Type

A String value.

Property type

Read-only property

IMPORTANT

The value of this property must be either Date, DateTime, or DateTimeZone.

Example


 

Back to top

ClassName Property

Description

The class of the object.

Syntax

object.ClassName

Value Type

A String value.

Property type

Read-only property

Example


 

Back to top

Day Property

Description

The current day in the open calendar control.

Syntax

object.Day

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

IsEnabled Property

Description

Indicates whether the object is enabled.

Syntax

object.IsEnabled

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

IsOpen Property

Description

Indicates whether the associated popup applet is open.

Syntax

object.IsOpen

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

IsRequired Property

Description

Indicates whether the object is required.

Syntax

object.IsRequired

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

Month Property

Description

The current month in the open calendar control.

Syntax

object.Month

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

RepositoryName Property

Description

The name of the object as it is stored in the repository.

Syntax

object.RepositoryName

Value Type

A String value.

Property type

Read-only property


 

Back to top

Text Property

Description

The text value of the object.

Syntax

object.Text

Value Type

A String value.

Property type

Read-only property

Example


 

Back to top

Time Property

Description

The current time in the open calendar control.

Syntax

object.Time

Value Type

A String value.

Property type

Read-only property

Example


 

Back to top

TimeZone Property

Description

The current time zone in the open calendar control.

Syntax

object.TimeZone

Value Type

A String value.

Property type

Read-only property

Example


 

Back to top

TimeZoneCount Property

Description

The number of time zones in the time zone picklist for the open calendar control.

Syntax

object.TimeZoneCount

Value Type

A long integer value.

Property type

Read-only property

Example


 

Back to top

UIName Property

Description

The name of the object as it is appears in the user interface.

Syntax

object.UIName

Value Type

A String value.

Property type

Read-only property

Example


 

Back to top

Year Property

Description

The current year in the open calendar control.

Syntax

object.Year

Value Type

A long integer value.

Property type

Read-only property

Example


Back to top

See also: