1
0
mirror of synced 2026-08-07 16:06:55 +00:00

chore(generator): use case-sensitive event names from upstream (#257)

This commit is contained in:
Yury Semikhatsky
2021-02-04 11:55:36 -08:00
committed by GitHub
parent f99d6643cd
commit eebb223bc3
10 changed files with 39 additions and 82 deletions
@@ -723,7 +723,7 @@ public interface ElementHandle extends JSHandle {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelector(String selector, String expression, Object arg);
default Object evalOnSelectorAll(String selector, String expression) {
@@ -742,7 +742,7 @@ public interface ElementHandle extends JSHandle {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelectorAll(String selector, String expression, Object arg);
default void fill(String value) {
@@ -20,7 +20,7 @@ import java.nio.file.Path;
import java.util.*;
/**
* {@code FileChooser} objects are dispatched by the page in the [{@code event: Page.filechooser}] event.
* {@code FileChooser} objects are dispatched by the page in the [{@code event: Page.fileChooser}] event.
*/
public interface FileChooser {
class FilePayload {
@@ -26,10 +26,10 @@ import java.util.regex.Pattern;
* [{@code method: Frame.childFrames}] methods.
*
* <p> {@code Frame} object's lifecycle is controlled by three events, dispatched on the page object:
* - [{@code event: Page.frameattached}] - fired when the frame gets attached to the page. A Frame can be attached to the page
* - [{@code event: Page.frameAttached}] - fired when the frame gets attached to the page. A Frame can be attached to the page
* only once.
* - [{@code event: Page.framenavigated}] - fired when the frame commits navigation to a different URL.
* - [{@code event: Page.framedetached}] - fired when the frame gets detached from the page. A Frame can be detached from the
* - [{@code event: Page.frameNavigated}] - fired when the frame commits navigation to a different URL.
* - [{@code event: Page.frameDetached}] - fired when the frame gets detached from the page. A Frame can be detached from the
* page only once.
*/
public interface Frame {
@@ -983,7 +983,7 @@ public interface Frame {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelector(String selector, String expression, Object arg);
default Object evalOnSelectorAll(String selector, String expression) {
@@ -1002,7 +1002,7 @@ public interface Frame {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelectorAll(String selector, String expression, Object arg);
default Object evaluate(String expression) {
@@ -1025,7 +1025,7 @@ public interface Frame {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evaluate(String expression, Object arg);
default JSHandle evaluateHandle(String expression) {
@@ -1047,7 +1047,7 @@ public interface Frame {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle evaluateHandle(String expression, Object arg);
default void fill(String selector, String value) {
@@ -1459,7 +1459,7 @@ public interface Frame {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle waitForFunction(String expression, Object arg, WaitForFunctionOptions options);
default void waitForLoadState(LoadState state) {
@@ -51,7 +51,7 @@ public interface JSHandle {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evaluate(String expression, Object arg);
default JSHandle evaluateHandle(String expression) {
@@ -72,7 +72,7 @@ public interface JSHandle {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle evaluateHandle(String expression, Object arg);
/**
@@ -1664,7 +1664,7 @@ public interface Page extends AutoCloseable {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelector(String selector, String expression, Object arg);
default Object evalOnSelectorAll(String selector, String expression) {
@@ -1681,7 +1681,7 @@ public interface Page extends AutoCloseable {
* @param selector A selector to query for. See [working with selectors](./selectors.md) for more details.
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evalOnSelectorAll(String selector, String expression, Object arg);
default Object evaluate(String expression) {
@@ -1707,7 +1707,7 @@ public interface Page extends AutoCloseable {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evaluate(String expression, Object arg);
default JSHandle evaluateHandle(String expression) {
@@ -1729,7 +1729,7 @@ public interface Page extends AutoCloseable {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle evaluateHandle(String expression, Object arg);
default void exposeBinding(String name, Binding callback) {
@@ -2365,7 +2365,7 @@ public interface Page extends AutoCloseable {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle waitForFunction(String expression, Object arg, WaitForFunctionOptions options);
default void waitForLoadState(Frame.LoadState state) {
@@ -22,10 +22,10 @@ import java.util.*;
* Whenever the page sends a request for a network resource the following sequence of events are emitted by {@code Page}:
* - [{@code event: Page.request}] emitted when the request is issued by the page.
* - [{@code event: Page.response}] emitted when/if the response status and headers are received for the request.
* - [{@code event: Page.requestfinished}] emitted when the response body is downloaded and the request is complete.
* - [{@code event: Page.requestFinished}] emitted when the response body is downloaded and the request is complete.
*
* <p> If request fails at some point, then instead of {@code 'requestfinished'} event (and possibly instead of 'response' event),
* the [{@code event: Page.requestfailed}] event is emitted.
* the [{@code event: Page.requestFailed}] event is emitted.
*
* <p> <strong>NOTE:</strong> HTTP Error responses, such as 404 or 503, are still successful responses from HTTP standpoint, so request will
* complete with {@code 'requestfinished'} event.
@@ -55,7 +55,7 @@ public interface Worker {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
Object evaluate(String expression, Object arg);
default JSHandle evaluateHandle(String expression) {
@@ -72,7 +72,7 @@ public interface Worker {
*
* @param expression JavaScript expression to be evaluated in the browser context. If it looks like a function declaration, it is interpreted
* as a function. Otherwise, evaluated as an expression.
* @param arg Optional argument to pass to {@code expression}
* @param arg Optional argument to pass to {@code expression}.
*/
JSHandle evaluateHandle(String expression, Object arg);
String url();