Frame.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/Web/API
(
self,
selector: str,
*,
strict: typing.Optional[bool] = None,
timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None,
)
| 5682 | ) |
| 5683 | |
| 5684 | async def input_value( |
| 5685 | self, |
| 5686 | selector: str, |
| 5687 | *, |
| 5688 | strict: typing.Optional[bool] = None, |
| 5689 | timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None, |
| 5690 | ) -> str: |
| 5691 | """Frame.input_value |
| 5692 | |
| 5693 | Returns `input.value` for the selected `<input>` or `<textarea>` or `<select>` element. |
| 5694 | |
| 5695 | Throws for non-input elements. However, if the element is inside the `<label>` element that has an associated |
| 5696 | [control](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control), returns the value of the |
| 5697 | control. |
| 5698 | |
| 5699 | Parameters |
| 5700 | ---------- |
| 5701 | selector : str |
| 5702 | A selector to search for an element. If there are multiple elements satisfying the selector, the first will be |
| 5703 | used. |
| 5704 | strict : Union[bool, None] |
| 5705 | When true, the call requires selector to resolve to a single element. If given selector resolves to more than one |
| 5706 | element, the call throws an exception. |
| 5707 | timeout : Union[float, None] |
| 5708 | Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can |
| 5709 | be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. |
| 5710 | |
| 5711 | Returns |
| 5712 | ------- |
| 5713 | str |
| 5714 | """ |
| 5715 | |
| 5716 | return mapping.from_maybe_impl( |
| 5717 | await self._impl_obj.input_value( |
| 5718 | selector=selector, strict=strict, timeout=to_milliseconds(timeout) |
| 5719 | ) |
| 5720 | ) |
| 5721 | |
| 5722 | async def set_input_files( |
| 5723 | self, |
nothing calls this directly
no test coverage detected