ElementHandle.input_value Returns `input.value` for the selected ` ` or ` ` or ` ` element. Throws for non-input elements. However, if the element is inside the ` ` element that has an associated [control](https://developer.mozilla.org/en-US/docs
(
self,
*,
timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None,
)
| 2625 | ) |
| 2626 | |
| 2627 | async def input_value( |
| 2628 | self, |
| 2629 | *, |
| 2630 | timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None, |
| 2631 | ) -> str: |
| 2632 | """ElementHandle.input_value |
| 2633 | |
| 2634 | Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. |
| 2635 | |
| 2636 | Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated |
| 2637 | [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the |
| 2638 | control. |
| 2639 | |
| 2640 | Parameters |
| 2641 | ---------- |
| 2642 | timeout : Union[float, None] |
| 2643 | Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can |
| 2644 | be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. |
| 2645 | |
| 2646 | Returns |
| 2647 | ------- |
| 2648 | str |
| 2649 | """ |
| 2650 | |
| 2651 | return mapping.from_maybe_impl( |
| 2652 | await self._impl_obj.input_value(timeout=to_milliseconds(timeout)) |
| 2653 | ) |
| 2654 | |
| 2655 | async def set_input_files( |
| 2656 | self, |
nothing calls this directly
no test coverage detected