ElementHandle.hover This method hovers over the element by performing the following steps: 1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set. 1. Scroll the element into view if needed. 1.
(
self,
*,
modifiers: typing.Optional[
typing.Sequence[Literal["Alt", "Control", "ControlOrMeta", "Meta", "Shift"]]
] = None,
position: typing.Optional[Position] = None,
timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None,
no_wait_after: typing.Optional[bool] = None,
force: typing.Optional[bool] = None,
trial: typing.Optional[bool] = None,
)
| 2211 | ) |
| 2212 | |
| 2213 | async def hover( |
| 2214 | self, |
| 2215 | *, |
| 2216 | modifiers: typing.Optional[ |
| 2217 | typing.Sequence[Literal["Alt", "Control", "ControlOrMeta", "Meta", "Shift"]] |
| 2218 | ] = None, |
| 2219 | position: typing.Optional[Position] = None, |
| 2220 | timeout: typing.Optional[typing.Union[float, datetime.timedelta]] = None, |
| 2221 | no_wait_after: typing.Optional[bool] = None, |
| 2222 | force: typing.Optional[bool] = None, |
| 2223 | trial: typing.Optional[bool] = None, |
| 2224 | ) -> None: |
| 2225 | """ElementHandle.hover |
| 2226 | |
| 2227 | This method hovers over the element by performing the following steps: |
| 2228 | 1. Wait for [actionability](https://playwright.dev/python/docs/actionability) checks on the element, unless `force` option is set. |
| 2229 | 1. Scroll the element into view if needed. |
| 2230 | 1. Use `page.mouse` to hover over the center of the element, or the specified `position`. |
| 2231 | |
| 2232 | If the element is detached from the DOM at any moment during the action, this method throws. |
| 2233 | |
| 2234 | When all steps combined have not finished during the specified `timeout`, this method throws a `TimeoutError`. |
| 2235 | Passing zero timeout disables this. |
| 2236 | |
| 2237 | Parameters |
| 2238 | ---------- |
| 2239 | modifiers : Union[Sequence[Union["Alt", "Control", "ControlOrMeta", "Meta", "Shift"]], None] |
| 2240 | Modifier keys to press. Ensures that only these modifiers are pressed during the operation, and then restores |
| 2241 | current modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to |
| 2242 | "Control" on Windows and Linux and to "Meta" on macOS. |
| 2243 | position : Union[{x: float, y: float}, None] |
| 2244 | A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of |
| 2245 | the element. |
| 2246 | timeout : Union[float, None] |
| 2247 | Maximum time in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can |
| 2248 | be changed by using the `browser_context.set_default_timeout()` or `page.set_default_timeout()` methods. |
| 2249 | no_wait_after : Union[bool, None] |
| 2250 | This option has no effect. |
| 2251 | Deprecated: This option has no effect. |
| 2252 | force : Union[bool, None] |
| 2253 | Whether to bypass the [actionability](../actionability.md) checks. Defaults to `false`. |
| 2254 | trial : Union[bool, None] |
| 2255 | When set, this method only performs the [actionability](../actionability.md) checks and skips the action. Defaults |
| 2256 | to `false`. Useful to wait until the element is ready for the action without performing it. |
| 2257 | """ |
| 2258 | |
| 2259 | return mapping.from_maybe_impl( |
| 2260 | await self._impl_obj.hover( |
| 2261 | modifiers=mapping.to_impl(modifiers), |
| 2262 | position=position, |
| 2263 | timeout=to_milliseconds(timeout), |
| 2264 | noWaitAfter=no_wait_after, |
| 2265 | force=force, |
| 2266 | trial=trial, |
| 2267 | ) |
| 2268 | ) |
| 2269 | |
| 2270 | async def click( |
nothing calls this directly
no test coverage detected