playwright.controller.InputTaskButton
self, page, id) playwright.controller.InputTaskButton(
Controller for shiny.express.ui.input_task_button
.
Attributes
Name | Description |
---|---|
expect | Expectation method equivalent to playwright.expect(self.loc) . |
id | The browser DOM id of the UI element. |
loc | Playwright Locator of the UI element. |
page | Playwright Page of the Shiny app. |
Methods
Name | Description |
---|---|
click | Clicks the input action. |
expect_auto_reset | Expect the auto-reset attribute of the input task button to have a specific value. |
expect_label | Expect the label of the input task button to have a specific value. |
expect_label_busy | Expect the label of a busy input task button to have a specific value. |
expect_label_ready | Expect the label of a ready input task button to have a specific value. |
expect_label_state | Expect the label of the input task button to have a specific value in a specific state. |
expect_state | Expect the state of the input task button to have a specific value. |
expect_width | Expect the width attribute of a DOM element to have a specific value. |
click
=None, **kwargs) playwright.controller.InputTaskButton.click(timeout
Clicks the input action.
Parameters
Name | Type | Description | Default |
---|---|---|---|
timeout | Timeout |
The maximum time to wait for the input action to be clicked. Defaults to None . |
None |
expect_auto_reset
=None) playwright.controller.InputTaskButton.expect_auto_reset(value, timeout
Expect the auto-reset
attribute of the input task button to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | bool | The expected value of the auto-reset attribute. |
required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_label
*, timeout=None) playwright.controller.InputTaskButton.expect_label(value,
Expect the label of the input task button to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | PatternOrStr |
The expected value of the label. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_label_busy
*, timeout=None) playwright.controller.InputTaskButton.expect_label_busy(value,
Expect the label of a busy input task button to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | PatternOrStr |
The expected value of the label. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_label_ready
*, timeout=None) playwright.controller.InputTaskButton.expect_label_ready(value,
Expect the label of a ready input task button to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | PatternOrStr |
The expected value of the label. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_label_state
playwright.controller.InputTaskButton.expect_label_state(
state
value*
=None
timeout )
Expect the label of the input task button to have a specific value in a specific state.
Parameters
Name | Type | Description | Default |
---|---|---|---|
state | str | The state of the input task button. | required |
value | PatternOrStr |
The expected value of the label. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_state
*, timeout=None) playwright.controller.InputTaskButton.expect_state(value,
Expect the state of the input task button to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | Literal[‘ready’, ‘busy’] | str | The expected value of the state of the input task button. | required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |
expect_width
*, timeout=None) playwright.controller.InputTaskButton.expect_width(value,
Expect the width
attribute of a DOM element to have a specific value.
Parameters
Name | Type | Description | Default |
---|---|---|---|
value | AttrValue |
The expected value of the width attribute. |
required |
timeout | Timeout |
The maximum time to wait for the expectation to be fulfilled. Defaults to None . |
None |