playwright.controller.InputSubmitTextarea

playwright.controller.InputSubmitTextarea(page, id)

Controller for shiny.express.ui.input_submit_textarea.

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.
loc_button Playwright Locator for the submit button.
loc_container Playwright Locator for the container of the UI element.
loc_label Playwright Locator for the label of the UI element.
page Playwright Page of the Shiny app.

Methods

Name Description
expect_button_label Expect the submit button to have a specific label.
expect_data_needs_modifier Expect the data-needs-modifier attribute to be present or absent.
expect_label Expect the label of the input to have a specific text.
expect_placeholder Expect the placeholder attribute of the input to have a specific value.
expect_rows Expect the rows attribute to have a specific value.
expect_value Expect the value of the text input to have a specific value.
expect_width Expect the input element to have a specific width.
set Sets the text value in the textarea.
submit Clicks the submit button.

expect_button_label

playwright.controller.InputSubmitTextarea.expect_button_label(
    value,
    *,
    timeout=None,
)

Expect the submit button to have a specific label.

Parameters

Name Type Description Default
value PatternOrStr The expected label text. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_data_needs_modifier

playwright.controller.InputSubmitTextarea.expect_data_needs_modifier(
    value,
    *,
    timeout=None,
)

Expect the data-needs-modifier attribute to be present or absent.

Parameters

Name Type Description Default
value bool If True, expects the attribute to be present. If False, expects it to be absent. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_label

playwright.controller.InputSubmitTextarea.expect_label(value, *, timeout=None)

Expect the label of the input to have a specific text.

Parameters

Name Type Description Default
value PatternOrStr The expected text value of the label. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_placeholder

playwright.controller.InputSubmitTextarea.expect_placeholder(
    value,
    *,
    timeout=None,
)

Expect the placeholder attribute of the input to have a specific value.

Parameters

Name Type Description Default
value AttrValue The expected value of the placeholder attribute. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_rows

playwright.controller.InputSubmitTextarea.expect_rows(value, *, timeout=None)

Expect the rows attribute to have a specific value.

Parameters

Name Type Description Default
value AttrValue The expected value of the rows attribute. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_value

playwright.controller.InputSubmitTextarea.expect_value(value, *, timeout=None)

Expect the value of the text input to have a specific value.

Parameters

Name Type Description Default
value PatternOrStr The expected value of the text input. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

expect_width

playwright.controller.InputSubmitTextarea.expect_width(value, *, timeout=None)

Expect the input element to have a specific width.

Parameters

Name Type Description Default
value AttrValue The expected width. required
timeout Timeout The maximum time to wait for the expectation to be fulfilled. Defaults to None. None

set

playwright.controller.InputSubmitTextarea.set(
    value,
    *,
    submit=False,
    timeout=None,
)

Sets the text value in the textarea.

Parameters

Name Type Description Default
value str The text to set. required
submit bool Whether to click the submit button after setting the text. Defaults to False. False
timeout Timeout The maximum time to wait for the text to be set. Defaults to None. None

submit

playwright.controller.InputSubmitTextarea.submit(timeout=None)

Clicks the submit button.

Parameters

Name Type Description Default
timeout Timeout The maximum time to wait for the click. Defaults to None. None