Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b269ff5ec | |||
| 3ef0da1bb3 | |||
| ef8656036f |
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>parent-pom</artifactId>
|
<artifactId>parent-pom</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>driver-bundle</artifactId>
|
<artifactId>driver-bundle</artifactId>
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>parent-pom</artifactId>
|
<artifactId>parent-pom</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>driver</artifactId>
|
<artifactId>driver</artifactId>
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>org.example</groupId>
|
<groupId>org.example</groupId>
|
||||||
<artifactId>examples</artifactId>
|
<artifactId>examples</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Playwright Client Examples</name>
|
<name>Playwright Client Examples</name>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>parent-pom</artifactId>
|
<artifactId>parent-pom</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>playwright</artifactId>
|
<artifactId>playwright</artifactId>
|
||||||
|
|||||||
@@ -445,6 +445,10 @@ class BrowserContextImpl extends ChannelOwner implements BrowserContext {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefaultNavigationTimeout(double timeout) {
|
public void setDefaultNavigationTimeout(double timeout) {
|
||||||
|
setDefaultNavigationTimeoutImpl(timeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
void setDefaultNavigationTimeoutImpl(Double timeout) {
|
||||||
withLogging("BrowserContext.setDefaultNavigationTimeout", () -> {
|
withLogging("BrowserContext.setDefaultNavigationTimeout", () -> {
|
||||||
timeoutSettings.setDefaultNavigationTimeout(timeout);
|
timeoutSettings.setDefaultNavigationTimeout(timeout);
|
||||||
JsonObject params = new JsonObject();
|
JsonObject params = new JsonObject();
|
||||||
@@ -455,6 +459,10 @@ class BrowserContextImpl extends ChannelOwner implements BrowserContext {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setDefaultTimeout(double timeout) {
|
public void setDefaultTimeout(double timeout) {
|
||||||
|
setDefaultTimeoutImpl(timeout);
|
||||||
|
}
|
||||||
|
|
||||||
|
void setDefaultTimeoutImpl(Double timeout) {
|
||||||
withLogging("BrowserContext.setDefaultTimeout", () -> {
|
withLogging("BrowserContext.setDefaultTimeout", () -> {
|
||||||
timeoutSettings.setDefaultTimeout(timeout);
|
timeoutSettings.setDefaultTimeout(timeout);
|
||||||
JsonObject params = new JsonObject();
|
JsonObject params = new JsonObject();
|
||||||
|
|||||||
@@ -938,13 +938,13 @@ public class PageImpl extends ChannelOwner implements Page {
|
|||||||
withLogging("Page.pause", () -> {
|
withLogging("Page.pause", () -> {
|
||||||
Double defaultNavigationTimeout = browserContext.timeoutSettings.defaultNavigationTimeout();
|
Double defaultNavigationTimeout = browserContext.timeoutSettings.defaultNavigationTimeout();
|
||||||
Double defaultTimeout = browserContext.timeoutSettings.defaultTimeout();
|
Double defaultTimeout = browserContext.timeoutSettings.defaultTimeout();
|
||||||
browserContext.setDefaultNavigationTimeout(0);
|
browserContext.setDefaultNavigationTimeoutImpl(0.0);
|
||||||
browserContext.setDefaultTimeout(0);
|
browserContext.setDefaultTimeoutImpl(0.0);
|
||||||
try {
|
try {
|
||||||
runUntil(() -> {}, new WaitableRace<>(asList(context().pause(), (Waitable<JsonElement>) waitableClosedOrCrashed)));
|
runUntil(() -> {}, new WaitableRace<>(asList(context().pause(), (Waitable<JsonElement>) waitableClosedOrCrashed)));
|
||||||
} finally {
|
} finally {
|
||||||
browserContext.setDefaultNavigationTimeout(defaultNavigationTimeout);
|
browserContext.setDefaultNavigationTimeoutImpl(defaultNavigationTimeout);
|
||||||
browserContext.setDefaultTimeout(defaultTimeout);
|
browserContext.setDefaultTimeoutImpl(defaultTimeout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,11 +37,11 @@ class TimeoutSettings {
|
|||||||
return defaultNavigationTimeout;
|
return defaultNavigationTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setDefaultTimeout(double timeout) {
|
void setDefaultTimeout(Double timeout) {
|
||||||
defaultTimeout = timeout;
|
defaultTimeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setDefaultNavigationTimeout(double timeout) {
|
void setDefaultNavigationTimeout(Double timeout) {
|
||||||
defaultNavigationTimeout = timeout;
|
defaultNavigationTimeout = timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>parent-pom</artifactId>
|
<artifactId>parent-pom</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Playwright Parent Project</name>
|
<name>Playwright Parent Project</name>
|
||||||
<description>Java library to automate Chromium, Firefox and WebKit with a single API.
|
<description>Java library to automate Chromium, Firefox and WebKit with a single API.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>api-generator</artifactId>
|
<artifactId>api-generator</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Playwright - API Generator</name>
|
<name>Playwright - API Generator</name>
|
||||||
<description>
|
<description>
|
||||||
This is an internal module used to generate Java API from the upstream Playwright
|
This is an internal module used to generate Java API from the upstream Playwright
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>test-cli-fatjar</artifactId>
|
<artifactId>test-cli-fatjar</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Test Playwright Command Line FatJar</name>
|
<name>Test Playwright Command Line FatJar</name>
|
||||||
<properties>
|
<properties>
|
||||||
<compiler.version>1.8</compiler.version>
|
<compiler.version>1.8</compiler.version>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>test-cli-version</artifactId>
|
<artifactId>test-cli-version</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Test Playwright Command Line Version</name>
|
<name>Test Playwright Command Line Version</name>
|
||||||
<properties>
|
<properties>
|
||||||
<compiler.version>1.8</compiler.version>
|
<compiler.version>1.8</compiler.version>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>test-local-installation</artifactId>
|
<artifactId>test-local-installation</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Test local installation</name>
|
<name>Test local installation</name>
|
||||||
<description>Runs Playwright test suite (copied from playwright module) against locally cached Playwright</description>
|
<description>Runs Playwright test suite (copied from playwright module) against locally cached Playwright</description>
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>test-spring-boot-starter</artifactId>
|
<artifactId>test-spring-boot-starter</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Test Playwright With Spring Boot</name>
|
<name>Test Playwright With Spring Boot</name>
|
||||||
<properties>
|
<properties>
|
||||||
<spring.version>2.4.3</spring.version>
|
<spring.version>2.4.3</spring.version>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.microsoft.playwright</groupId>
|
<groupId>com.microsoft.playwright</groupId>
|
||||||
<artifactId>update-version</artifactId>
|
<artifactId>update-version</artifactId>
|
||||||
<version>1.35.0-SNAPSHOT</version>
|
<version>1.35.1</version>
|
||||||
<name>Playwright - Update Version in Documentation</name>
|
<name>Playwright - Update Version in Documentation</name>
|
||||||
<description>
|
<description>
|
||||||
This is an internal module used to update versions in the documentation based on
|
This is an internal module used to update versions in the documentation based on
|
||||||
|
|||||||
Reference in New Issue
Block a user