diff --git a/lib/src/main/java/com/microsoft/playwright/Deferred.java b/lib/src/main/java/com/microsoft/playwright/Deferred.java new file mode 100644 index 00000000..65a5cc3a --- /dev/null +++ b/lib/src/main/java/com/microsoft/playwright/Deferred.java @@ -0,0 +1,21 @@ +/** + * Copyright (c) Microsoft Corporation. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.microsoft.playwright; + +public interface Deferred { + T get(); +} diff --git a/lib/src/main/java/com/microsoft/playwright/Listener.java b/lib/src/main/java/com/microsoft/playwright/Listener.java new file mode 100644 index 00000000..ae88fbef --- /dev/null +++ b/lib/src/main/java/com/microsoft/playwright/Listener.java @@ -0,0 +1,21 @@ +/** + * Copyright (c) Microsoft Corporation. + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.microsoft.playwright; + +public interface Listener { + void handle(T event); +} diff --git a/lib/src/test/resources/offscreenbuttons.html b/lib/src/test/resources/offscreenbuttons.html new file mode 100644 index 00000000..b7f381de --- /dev/null +++ b/lib/src/test/resources/offscreenbuttons.html @@ -0,0 +1,55 @@ + +

+ + + + + + + + + + + +
+