Package | Description |
---|---|
com.microsoft.playwright |
Modifier and Type | Method and Description |
---|---|
Locator.HoverOptions |
Locator.HoverOptions.setForce(boolean force)
Whether to bypass the actionability checks.
|
Locator.HoverOptions |
Locator.HoverOptions.setModifiers(List<KeyboardModifier> modifiers)
Modifier keys to press.
|
Locator.HoverOptions |
Locator.HoverOptions.setNoWaitAfter(boolean noWaitAfter)
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading.
|
Locator.HoverOptions |
Locator.HoverOptions.setPosition(double x,
double y)
A point to use relative to the top-left corner of element padding box.
|
Locator.HoverOptions |
Locator.HoverOptions.setPosition(Position position)
A point to use relative to the top-left corner of element padding box.
|
Locator.HoverOptions |
Locator.HoverOptions.setTimeout(double timeout)
Maximum time in milliseconds, defaults to 30 seconds, pass
0 to disable timeout. |
Locator.HoverOptions |
Locator.HoverOptions.setTrial(boolean trial)
When set, this method only performs the actionability
checks and skips the action.
|
Modifier and Type | Method and Description |
---|---|
void |
Locator.hover(Locator.HoverOptions options)
This method hovers over the element by performing the following steps:
Wait for actionability checks on the element, unless
force option is set.
Scroll the element into view if needed.
Use Page.mouse() to hover over the center of the element, or the specified position .
Wait for initiated navigations to either succeed or fail, unless noWaitAfter option is set.
|
Copyright © 2022. All rights reserved.