This topic explains about the SubItems, different verification points, and behavior of the WinCarousel™ control proxy represented by UltraCarouselTestObject object.
This topic contains the following sections:
Carousel items are identified by Text , Name , Position , and Index . Priority in recording for the carousel items is:
Text (If not empty)
Name (If not empty)
Position . If the carousel buttons are not visible, it will record identified by Index instead of Position.
There are six possible scroll buttons for the Carousel control allowing to scroll items along the path. Each button is recognized as AtButton
(“[button name]”)
.
Text subitem references the Text
property of the carousel item, which if specified, refers to the visible text on the carousel item. If more than one instance of the CarouselItem is visible it will interact with the first one on the path. Also if the item is not currently visible it will be scrolled into view.
Carousel1ComboListBox().Click(
AtText
("Item1"))
Carousel1ComboListBox().Click(
AtText
("Item1", 1)) ' Click the second instance of Item1
Name subitem references the Key
property of the carousel item, which can contain duplicates on value null as it is not required to be set. If more than one instance of the CarouselItem is visible it will interact with the first one on the path. Also if the item is not currently visible it will be scrolled into view.
Carousel1ComboListBox().Click(
AtName
("Key1"))
Carousel1ComboListBox().Click(
AtName
("", 1)) ' Click the second instance of an empty key
Position subitem refers to the visible position of the carousel item along the path. It is a zero-based index, based on the visible carousel item UIElement
sorted on the ItemInfo.Position
property which is an internal property on the UIElement
to state where it is on the path. You can also use this if you need to click on a particular instance of a carousel item that appears multiple times along a path.
Carousel1ComboListBox().Click(
AtPosition
(3))
Index subitem refers to the zero-based index of the carousel item in the items collection. If more than one instance of the CarouselItem is visible it will interact with the first one on the path. Also if the item is not currently visible it will be scrolled into view.
Carousel1ComboListBox().Click(
AtIndex
(0))
The Verification Point returns a table of data about all or currently visible carousel items using the VisibleCarouselItem
and AllCarouselItems
properties.
Returns a table of data about the currently visible carousel items. The returned data consists of the following properties:
Returns a table of data for all carousel items. The returned data consists of the following properties.