SAPWorkCenter Object
Description
An SAP WorkCenter in a Web-based SAP application.
Operations
The sections below list the built-in methods and properties that you can use as operations for the SAPWorkCenter object.
Note: You can also view a list and descriptions of the SAPWorkCenter 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. |
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. |
Maximize | Maximize the WorkCenter window. |
Minimize | Minimize the WorkCenter window. |
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. |
Select | Select an item from the WorkCenter menu. |
SetTOProperty | Sets the value of the specified description property in the test object description. |
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
Exist | Checks whether the object currently exists in the open application. |
Maximize Method
Description
Maximize the WorkCenter window.
Syntax
object.Maximize
Return Type
None.
Example
'The following example maximizes a SAPWorkCenter window. SAPNWBCShellWindow("Index_2").Page("Index").SAPWorkCenter("Recruitment").Maximize
Minimize Method
Description
Minimize the WorkCenter window.
Syntax
object.Minimize
Return Type
None.
Example
'The following example minimizes a SAPWorkCenter window. SAPNWBCShellWindow("Index_2").Page("Index").SAPWorkCenter("Recruitment").Minimize
Select Method
Description
Select an item from the WorkCenter menu.
Syntax
object.Select (Item)
Arguments
Parameter | Description |
---|---|
Item |
Required. A String value. The item to select in the window. You can specify an item or a path to an item separated by semicolons (;). |
Return Type
None.
Example
'The following example selects the path to an item in a SAPWorkCenter window. SAPNWBCShellWindow("Index_2").Page("Index").SAPWorkCenter("Recruitment").Select "Advertising;Vacancy;Overview Page"
See also: