diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java index ffd720cd..d595cf53 100644 --- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java +++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java @@ -470,7 +470,7 @@ public interface BrowserContext extends AutoCloseable { * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted. * - *

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * BrowserContext context = browser.newContext();
    * context.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
@@ -501,7 +501,7 @@ public interface BrowserContext extends AutoCloseable {
    * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route
    * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted.
    *
-   * 

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * BrowserContext context = browser.newContext();
    * context.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
@@ -532,7 +532,7 @@ public interface BrowserContext extends AutoCloseable {
    * Routing provides the capability to modify network requests that are made by any page in the browser context. Once route
    * is enabled, every request matching the url pattern will stall unless it's continued, fulfilled or aborted.
    *
-   * 

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * BrowserContext context = browser.newContext();
    * context.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
index 9c79d70a..567d87ac 100644
--- a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
+++ b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
@@ -69,7 +69,8 @@ public interface BrowserType {
      */
     public List args;
     /**
-     * Browser distribution channel.
+     * Browser distribution channel. Read more about using Google Chrome and Microsoft Edge.
      */
     public BrowserChannel channel;
     /**
diff --git a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
index bf725545..740f6a86 100644
--- a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
+++ b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
@@ -739,8 +739,8 @@ public interface ElementHandle extends JSHandle {
    */
   void dblclick(DblclickOptions options);
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * elementHandle.dispatchEvent("click");
@@ -775,8 +775,8 @@ public interface ElementHandle extends JSHandle {
     dispatchEvent(type, null);
   }
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * elementHandle.dispatchEvent("click");
@@ -1033,7 +1033,7 @@ public interface ElementHandle extends JSHandle {
    * 

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. * * @param key Name of the key to press or a character to generate, such as {@code ArrowLeft} or {@code a}. @@ -1059,7 +1059,7 @@ public interface ElementHandle extends JSHandle { *

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. * * @param key Name of the key to press or a character to generate, such as {@code ArrowLeft} or {@code a}. diff --git a/playwright/src/main/java/com/microsoft/playwright/Frame.java b/playwright/src/main/java/com/microsoft/playwright/Frame.java index b42e0ab2..34a2f373 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Frame.java +++ b/playwright/src/main/java/com/microsoft/playwright/Frame.java @@ -1050,8 +1050,8 @@ public interface Frame { */ void dblclick(String selector, DblclickOptions options); /** - * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click} - * is dispatched. This is equivalend to calling element.click(). *

{@code
    * frame.dispatchEvent("button#submit", "click");
@@ -1089,8 +1089,8 @@ public interface Frame {
     dispatchEvent(selector, type, eventInit, null);
   }
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * frame.dispatchEvent("button#submit", "click");
@@ -1127,8 +1127,8 @@ public interface Frame {
     dispatchEvent(selector, type, null);
   }
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * frame.dispatchEvent("button#submit", "click");
@@ -1741,7 +1741,7 @@ public interface Frame {
    * 

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. * * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. * * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See * * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See * * @param selector A selector to search for element. If there are multiple elements satisfying the selector, the first will be used. See If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. *

{@code
    * Page page = browser.newPage();
@@ -170,7 +170,7 @@ public interface Keyboard {
    * 

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. *

{@code
    * Page page = browser.newPage();
diff --git a/playwright/src/main/java/com/microsoft/playwright/Page.java b/playwright/src/main/java/com/microsoft/playwright/Page.java
index 4338b532..a955c36b 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Page.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Page.java
@@ -1852,8 +1852,8 @@ public interface Page extends AutoCloseable {
    */
   void dblclick(String selector, DblclickOptions options);
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * page.dispatchEvent("button#submit", "click");
@@ -1891,8 +1891,8 @@ public interface Page extends AutoCloseable {
     dispatchEvent(selector, type, eventInit, null);
   }
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * page.dispatchEvent("button#submit", "click");
@@ -1929,8 +1929,8 @@ public interface Page extends AutoCloseable {
     dispatchEvent(selector, type, null);
   }
   /**
-   * The snippet below dispatches the {@code click} event on the element. Regardless of the visibility state of the elment, {@code click}
-   * is dispatched. This is equivalend to calling element.click().
    * 
{@code
    * page.dispatchEvent("button#submit", "click");
@@ -2965,7 +2965,7 @@ public interface Page extends AutoCloseable {
    * 

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. *

{@code
    * Page page = browser.newPage();
@@ -3003,7 +3003,7 @@ public interface Page extends AutoCloseable {
    * 

If {@code key} is a single character, it is case-sensitive, so the values {@code a} and {@code A} will generate different respective * texts. * - *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When speficied with the + *

Shortcuts such as {@code key: "Control+o"} or {@code key: "Control+Shift+T"} are supported as well. When specified with the * modifier, modifier is pressed and being held while the subsequent key is being pressed. *

{@code
    * Page page = browser.newPage();
@@ -3060,7 +3060,7 @@ public interface Page extends AutoCloseable {
    *
    * 

NOTE: The handler will only be called for the first url if the response is a redirect. * - *

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * Page page = browser.newPage();
    * page.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
@@ -3092,7 +3092,7 @@ public interface Page extends AutoCloseable {
    *
    * 

NOTE: The handler will only be called for the first url if the response is a redirect. * - *

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * Page page = browser.newPage();
    * page.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
@@ -3124,7 +3124,7 @@ public interface Page extends AutoCloseable {
    *
    * 

NOTE: The handler will only be called for the first url if the response is a redirect. * - *

An example of a naïve handler that aborts all image requests: + *

An example of a naive handler that aborts all image requests: *

{@code
    * Page page = browser.newPage();
    * page.route("**\/*.{png,jpg,jpeg}", route -> route.abort());
@@ -3151,16 +3151,12 @@ public interface Page extends AutoCloseable {
   void route(Predicate url, Consumer handler);
   /**
    * Returns the buffer with the captured screenshot.
-   *
-   * 

NOTE: Screenshots take at least 1/6 second on Chromium OS X and Chromium Windows. See https://crbug.com/741689 for discussion. */ default byte[] screenshot() { return screenshot(null); } /** * Returns the buffer with the captured screenshot. - * - *

NOTE: Screenshots take at least 1/6 second on Chromium OS X and Chromium Windows. See https://crbug.com/741689 for discussion. */ byte[] screenshot(ScreenshotOptions options); /** diff --git a/playwright/src/main/java/com/microsoft/playwright/Touchscreen.java b/playwright/src/main/java/com/microsoft/playwright/Touchscreen.java index da586e2d..71de388c 100644 --- a/playwright/src/main/java/com/microsoft/playwright/Touchscreen.java +++ b/playwright/src/main/java/com/microsoft/playwright/Touchscreen.java @@ -20,7 +20,7 @@ import java.util.*; /** * The Touchscreen class operates in main-frame CSS pixels relative to the top-left corner of the viewport. Methods on the - * touchscreen can only be used in browser contexts that have been intialized with {@code hasTouch} set to true. + * touchscreen can only be used in browser contexts that have been initialized with {@code hasTouch} set to true. */ public interface Touchscreen { /** diff --git a/playwright/src/main/java/com/microsoft/playwright/WebSocket.java b/playwright/src/main/java/com/microsoft/playwright/WebSocket.java index 6981687f..12dd368d 100644 --- a/playwright/src/main/java/com/microsoft/playwright/WebSocket.java +++ b/playwright/src/main/java/com/microsoft/playwright/WebSocket.java @@ -35,7 +35,7 @@ public interface WebSocket { void offClose(Consumer handler); /** - * Fired when the websocket recieves a frame. + * Fired when the websocket receives a frame. */ void onFrameReceived(Consumer handler); /** diff --git a/scripts/CLI_VERSION b/scripts/CLI_VERSION index 81c871de..93248a9a 100644 --- a/scripts/CLI_VERSION +++ b/scripts/CLI_VERSION @@ -1 +1 @@ -1.10.0 +1.11.0-next-1617006126000