@@ -245,6 +245,12 @@ class ClickOptions {
245245 * element.
246246 */
247247 public Position position ;
248+ /**
249+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current
250+ * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
251+ * location.
252+ */
253+ public Integer steps ;
248254 /**
249255 * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default
250256 * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
@@ -320,6 +326,15 @@ public ClickOptions setPosition(Position position) {
320326 this .position = position ;
321327 return this ;
322328 }
329+ /**
330+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current
331+ * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
332+ * location.
333+ */
334+ public ClickOptions setSteps (int steps ) {
335+ this .steps = steps ;
336+ return this ;
337+ }
323338 /**
324339 * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default
325340 * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
@@ -370,6 +385,12 @@ class DblclickOptions {
370385 * element.
371386 */
372387 public Position position ;
388+ /**
389+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current
390+ * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
391+ * location.
392+ */
393+ public Integer steps ;
373394 /**
374395 * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default
375396 * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
@@ -438,6 +459,15 @@ public DblclickOptions setPosition(Position position) {
438459 this .position = position ;
439460 return this ;
440461 }
462+ /**
463+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between Playwright's current
464+ * cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
465+ * location.
466+ */
467+ public DblclickOptions setSteps (int steps ) {
468+ this .steps = steps ;
469+ return this ;
470+ }
441471 /**
442472 * Maximum time in milliseconds. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout. The default
443473 * value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
@@ -494,6 +524,11 @@ class DragToOptions {
494524 * specified, some visible point of the element is used.
495525 */
496526 public Position sourcePosition ;
527+ /**
528+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between the {@code mousedown}
529+ * and {@code mouseup} of the drag. When set to 1, emits a single {@code mousemove} event at the destination location.
530+ */
531+ public Integer steps ;
497532 /**
498533 * Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
499534 * specified, some visible point of the element is used.
@@ -543,6 +578,14 @@ public DragToOptions setSourcePosition(Position sourcePosition) {
543578 this .sourcePosition = sourcePosition ;
544579 return this ;
545580 }
581+ /**
582+ * Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between the {@code mousedown}
583+ * and {@code mouseup} of the drag. When set to 1, emits a single {@code mousemove} event at the destination location.
584+ */
585+ public DragToOptions setSteps (int steps ) {
586+ this .steps = steps ;
587+ return this ;
588+ }
546589 /**
547590 * Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
548591 * specified, some visible point of the element is used.
@@ -2616,6 +2659,23 @@ default void dblclick() {
26162659 * @since v1.53
26172660 */
26182661 Locator describe (String description );
2662+ /**
2663+ * Returns locator description previously set with {@link com.microsoft.playwright.Locator#describe Locator.describe()}.
2664+ * Returns {@code null} if no custom description has been set. Prefer {@code Locator.toString()} for a human-readable
2665+ * representation, as it uses the description when available.
2666+ *
2667+ * <p> <strong>Usage</strong>
2668+ * <pre>{@code
2669+ * Locator button = page.getByRole(AriaRole.BUTTON).describe("Subscribe button");
2670+ * System.out.println(button.description()); // "Subscribe button"
2671+ *
2672+ * Locator input = page.getByRole(AriaRole.TEXTBOX);
2673+ * System.out.println(input.description()); // null
2674+ * }</pre>
2675+ *
2676+ * @since v1.57
2677+ */
2678+ String description ();
26192679 /**
26202680 * Programmatically dispatch an event on the matching element.
26212681 *
0 commit comments