Class: ListComponentDriver<ItemT>
@atomic-testing/core.ListComponentDriver
Base class for all component drivers. It provides the basic functionality to interact with the component
Type parameters
Name | Type |
---|---|
ItemT | extends ComponentDriver |
Hierarchy
-
↳
ListComponentDriver
Constructors
constructor
• new ListComponentDriver<ItemT
>(locator
, interactor
, option
): ListComponentDriver
<ItemT
>
Type parameters
Name | Type |
---|---|
ItemT | extends ComponentDriver <> |
Parameters
Name | Type |
---|---|
locator | PartLocator |
interactor | Interactor |
option | ListComponentDriverSpecificOption <ItemT > |
Returns
ListComponentDriver
<ItemT
>
Overrides
Defined in
packages/core/src/drivers/ListComponentDriver.ts:20
Properties
_itemLocator
• Private
_itemLocator: PartLocator
Defined in
packages/core/src/drivers/ListComponentDriver.ts:19
_option
• Private
Readonly
_option: ListComponentDriverSpecificOption
<ItemT
> & Partial
<ListComponentDriverOption
<ItemT
>>
Defined in
packages/core/src/drivers/ListComponentDriver.ts:18
commutableOption
• Readonly
commutableOption: IComponentDriverOption
<>
Option passed to the constructor includes both universal options which can be shared across all component driver tree, and component specific options which are only applicable to the component.
Commutable option is the option that can be shared across all component driver tree.
Inherited from
ComponentDriver.commutableOption
Defined in
packages/core/src/drivers/ComponentDriver.ts:35
interactor
• Readonly
interactor: Interactor
Inherited from
Defined in
packages/core/src/drivers/ComponentDriver.ts:39
Accessors
driverName
• get
driverName(): string
Returns
string
Overrides
ComponentDriver.driverName
Defined in
packages/core/src/drivers/ListComponentDriver.ts:91
locator
• get
locator(): PartLocator
Return the locator of the component
Returns
Inherited from
ComponentDriver.locator
Defined in
packages/core/src/drivers/ComponentDriver.ts:88
parts
• get
parts(): ScenePartDriver
<T
>
Return driver instance of all the named parts
Returns
Inherited from
ComponentDriver.parts
Defined in
packages/core/src/drivers/ComponentDriver.ts:81
Methods
click
▸ click(option?
): Promise
<void
>
Parameters
Name | Type |
---|---|
option? | Partial <ClickOption > |
Returns
Promise
<void
>