SiebCommunicationsToolbar Object
Description
The communications toolbar 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 SiebCommunicationsToolbar object.
Note: You can also view a list and descriptions of the SiebCommunicationsToolbar 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
CaptureBitmap | Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. |
Check | Checks whether the actual value of an item matches the expected value. |
CheckProperty | Checks whether the specified object property achieves the specified value within the specified timeout. |
ChildObjects | Returns the collection of child objects contained within the object. |
GetAllROProperties | Returns the collection of properties and current values from the object in the application. |
Click | Clicks the specified button. |
GetButtonState | Returns a String that The state of the specified button (for example, Blinking). |
GetButtonTooltip | Returns a String that The tooltip for the specified button. |
GetROProperty | Returns the current value of the specified description property from the object in the application. |
GetTOProperties | Returns the collection of properties and values used to identify the object. |
GetTOProperty | Returns the value of the specified description property from the test object description. |
Highlight | Highlights the object in the application. |
Output | Retrieves the current value of an item and stores it in a specified location. |
RefreshObject | Instructs UFT One to re-identify the object in the application the next time a step refers to this object. |
SelectWorkItem | Selects the specified work item. |
SetText | Enters text in the textbox. |
SetTOProperty | Sets the value of the specified description property in the test object description. |
ShowButtonTooltip | Displays the tooltip for the specified button. |
ToString | Returns a string that represents the current test object. |
WaitProperty | Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. |
Properties
ClassName | The class of the object. |
CurrentWorkItem | The currently selected work item. |
Exist | Checks whether the object currently exists in the open application. |
IsEnabled | Indicates whether the object is enabled. |
IsVisible | Indicates whether the object is visible. |
MediaType | The type of media. |
Message | The communication channel information displayed next to the Siebel menu that indicates where the message comes from (for example, Call Display). |
RepositoryName | The name of the object as it is stored in the repository. |
Text | The text value of the object. |
UIName | The name of the object as it appears in the user interface. |
WorkItemDuration | The duration of the currently selected work item. |
Click Method
Description
Clicks the specified button.
Syntax
object.Click (ButtonName)
Arguments
Parameter | Description |
---|---|
ButtonName |
Required. A String value. The RepositoryName of the button. |
Return Type
None.
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
GetButtonState Method
Description
Returns a String that The state of the specified button (for example, Blinking).
Syntax
object.GetButtonState (ButtonName)
Arguments
Parameter | Description |
---|---|
ButtonName |
Required. A String value. The RepositoryName of the button. |
Return Type
A String value.
The state of the specified button (for example, Blinking).
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
GetButtonTooltip Method
Description
Returns a String that The tooltip for the specified button.
Syntax
object.GetButtonTooltip (ButtonName)
Arguments
Parameter | Description |
---|---|
ButtonName |
Required. A String value. The RepositoryName of the button. |
Return Type
A String value.
The tooltip for the specified button.
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
SelectWorkItem Method
Description
Selects the specified work item.
Syntax
object.SelectWorkItem (Item)
Arguments
Parameter | Description |
---|---|
Item |
Required. A long integer value. The WorkItem to select. |
Return Type
None.
Example
'The following example uses the SelectWorkItem method to select the CommunicationsToolbar object as the currently selected work item, 'and then it uses the SetText method to enter text into the its textbox. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").SelectWorkItem "CommuniationsToolbar" SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").SetText "Communications"
SetText Method
Description
Enters text in the textbox.
Syntax
object.SetText (Text)
Arguments
Parameter | Description |
---|---|
Text |
Required. A String value. The text to enter. |
Return Type
None.
Example
'The following example uses the SelectWorkItem method to select the CommunicationsToolbar object as the currently selected work item, 'and then it uses the SetText method to enter text into the its textbox. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").SelectWorkItem "CommuniationsToolbar" SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").SetText "Communications"
ShowButtonTooltip Method
Description
Displays the tooltip for the specified button.
Syntax
object.ShowButtonTooltip (ButtonName)
Arguments
Parameter | Description |
---|---|
ButtonName |
Required. A String value. The RepositoryName of the button. |
Return Type
None.
IMPORTANT
This event is significant because the CommunicationsToolbar tooltip is dynamic, causing a roundtrip to the server.
Example
'The following example uses the CurrentWorkItem property to retrieve the currently selected work item, 'and then it uses the ShowButtonTooltip to displays the work item's tooltip. itemName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").CurrentWorkItem SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").ShowButtonTooltip (itemName)
ClassName Property
Description
The class of the object.
Syntax
object.ClassName
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the UIName and ClassName properties to display this 'information for all child objects of the Siebel Call Center application. 'Retrieve all the children of the siebel application object Set MyDescription = Description.Create() Set MyChildren = SiebApplication("Siebel Call Center").ChildObjects(MyDescription) childCount = MyChildren.Count 'Display the UI names and classes for each object. For i = 0 To childCount - 1 MsgBox MyChildren(i).UIName + " object of class " + MyChildren(i).ClassName Next
CurrentWorkItem Property
Description
The currently selected work item.
Syntax
object.CurrentWorkItem
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the CurrentWorkItem property to retrieve the name of the currently selected work item, 'and then it uses the WorkItemDuration property to retrieve the duration of that work item. itemName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration MsgBox "The duration of the item named " + itemName + " is " + duration
IsEnabled Property
Description
Indicates whether the object is enabled.
Syntax
object.IsEnabled
Value Type
A long integer value.
Property type
Read-only property
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
IsVisible Property
Description
Indicates whether the object is visible.
Syntax
object.IsVisible
Value Type
A long integer value.
Property type
Read-only property
IMPORTANT
You cannot checkpoint this property because the control is not rendered by the browser when it is not visible. However, you can manually write script code to check the property.
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
MediaType Property
Description
The type of media.
Syntax
object.MediaType
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the Message property to retrieve the communication channel, 'and then it uses the MediaType property to retrieve the media type of that channel. channelInfo = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").Message MediaType = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").MediaType MsgBox "The message of a media type " + MediaType + " comes from communication channel " + channelInfo
Message Property
Description
The communication channel information displayed next to the Siebel menu that indicates where the message comes from (for example, Call Display).
Syntax
object.Message
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the Message property to retrieve the communication channel, 'and then it uses the MediaType property to retrieve the media type of that channel. channelInfo = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").Message MediaType = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").MediaType MsgBox "The message of a media type " + MediaType + " comes from communication channel " + channelInfo
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
Text Property
Description
The text value of the object.
Syntax
object.Text
Value Type
A String value.
The RepositoryName of the toolbar.
Property type
Read-only property
Example
'The following example checks whether a toolbar button is enabled and visible before clicking it. Dim toolbarName, buttonState, buttonTooltip If (SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsEnabled And SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").IsVisible) Then ' get toolbar repository name toolbarName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration buttonState = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonState(toobarName) buttonTooltip = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").GetButtonTooltip(toolbarName) MsgBox "The state of the button " + buttonTooltip + " is " + buttonState ' If the toolbar has the desired state, click the toolbar button. SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommunicationsToolbar").Click (toobarName) End If
UIName Property
Description
The name of the object as it appears in the user interface.
Syntax
object.UIName
Value Type
A String value.
Property type
Read-only property
WorkItemDuration Property
Description
The duration of the currently selected work item.
Syntax
object.WorkItemDuration
Value Type
A String value.
Property type
Read-only property
Example
'The following example uses the CurrentWorkItem property to retrieve the name of the currently selected work item, 'and then it uses the WorkItemDuration property to retrieve the duration of that work item. itemName = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").CurrentWorkItem duration = SiebApplication("Siebel Call Center").SiebCommunicationsToolbar("CommuniationsToolbar").WorkItemDuration MsgBox "The duration of the item named " + itemName + " is " + duration
See also:
- SblAdvancedEdit
- SblButton
- SblCheckBox
- SblEdit
- SblPickList
- SblTable
- SblTabStrip
- SblTreeView
- SiebApplet
- SiebApplication
- SiebButton
- SiebCalculator
- SiebCalendar
- SiebCheckbox
- SiebCommunicationsToolbar
- SiebCurrency
- SiebInkData
- SiebList
- SiebMenu
- SiebPageTabs
- SiebPDQ
- SiebPicklist
- SiebRichText
- SiebScreen
- SiebScreenViews
- SiebTask
- SiebTaskAssistant
- SiebTaskLink
- SiebTaskStep
- SiebTaskUIPane
- SiebText
- SiebTextArea
- SiebThreadbar
- SiebToolbar
- SiebTree
- SiebView
- SiebViewApplets