Class: DialogDriver<ContentT>
@atomic-testing/component-driver-mui-v5.DialogDriver
Type parameters
Name | Type |
---|---|
ContentT | extends ScenePart |
Hierarchy
-
ContainerDriver
<ContentT
, typeofparts
>↳
DialogDriver
Constructors
constructor
• new DialogDriver<ContentT
>(locator
, interactor
, option?
): DialogDriver
<ContentT
>
Type parameters
Name | Type |
---|---|
ContentT | extends ScenePart |
Parameters
Name | Type |
---|---|
locator | PartLocator |
interactor | Interactor |
option? | Partial <IContainerDriverOption <, >> |
Returns
DialogDriver
<ContentT
>
Overrides
ContainerDriver<ContentT, typeof parts>.constructor
Defined in
packages/component-driver-mui-v5/src/components/DialogDriver.ts:31
Properties
commutableOption
• Readonly
commutableOption: IComponentDriverOption
<{ dialogContainer
: { driver
: typeof HTMLElementDriver
= HTMLElementDriver; locator
: CssLocator
} ; title
: { driver
: typeof HTMLElementDriver
= HTMLElementDriver; locator
: CssLocator
} }>
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
ContainerDriver.commutableOption
Defined in
packages/core/build/src/drivers/ComponentDriver.d.ts:19
interactor
• Readonly
interactor: Interactor
Inherited from
ContainerDriver.interactor
Defined in
packages/core/build/src/drivers/ComponentDriver.d.ts:10
Accessors
content
• get
content(): ScenePartDriver
<ContentT
>
Returns
ScenePartDriver
<ContentT
>
Inherited from
ContainerDriver.content
Defined in
packages/core/build/src/drivers/ContainerDriver.d.ts:8
driverName
• get
driverName(): string
Returns
string
Overrides
ContainerDriver.driverName
Defined in
packages/component-driver-mui-v5/src/components/DialogDriver.ts:87
locator
• get
locator(): PartLocator
Return the locator of the component
Returns
PartLocator
Inherited from
ContainerDriver.locator
Defined in
packages/core/build/src/drivers/ComponentDriver.d.ts:50
parts
• get
parts(): ScenePartDriver
<T
>
Return driver instance of all the named parts
Returns
ScenePartDriver
<T
>
Inherited from
ContainerDriver.parts
Defined in
packages/core/build/src/drivers/ComponentDriver.d.ts:46
Methods
click
▸ click(option?
): Promise
<void
>
Parameters
Name | Type |
---|---|
option? | Partial <ClickOption > |
Returns
Promise
<void
>
Inherited from
ContainerDriver.click
Defined in
packages/core/build/src/drivers/ComponentDriver.d.ts:74