| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Method and Description |
|---|---|
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setButton(MouseButton button) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setClickCount(int clickCount) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setDelay(double delay) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setForce(boolean force) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setModifiers(List<KeyboardModifier> modifiers) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setNoWaitAfter(boolean noWaitAfter) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setPosition(double x,
double y) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setPosition(Position position) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setTimeout(double timeout) |
ElementHandle.ClickOptions |
ElementHandle.ClickOptions.setTrial(boolean trial) |
| Modifier and Type | Method and Description |
|---|---|
void |
ElementHandle.click(ElementHandle.ClickOptions options)
This method clicks 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 click in the center of the element, or the specified position.
Wait for initiated navigations to either succeed or fail, unless noWaitAfter option is set.
|
Copyright © 2021. All rights reserved.