1
0
mirror of synced 2026-08-31 19:55:37 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Andrey Lushnikov 7ca57a082b cherry-pick(#785): chore: roll to latest 1.18 (#786) 2022-01-19 16:55:49 -08:00
Yury Semikhatsky 396d5a7b3e fix: hide internal call from inspector log (#783) (#784) 2022-01-19 14:55:07 -08:00
Yury Semikhatsky f19cecac20 fix: include var name into tracing error message (#779) (#780) 2022-01-19 10:45:12 -08:00
Andrey Lushnikov 4366386145 chore: mark 1.18.0 (#778) 2022-01-19 08:43:17 -08:00
13 changed files with 19 additions and 24 deletions
+1 -1
View File
@@ -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.18.0-SNAPSHOT</version> <version>1.18.0</version>
</parent> </parent>
<artifactId>driver-bundle</artifactId> <artifactId>driver-bundle</artifactId>
+1 -1
View File
@@ -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.18.0-SNAPSHOT</version> <version>1.18.0</version>
</parent> </parent>
<artifactId>driver</artifactId> <artifactId>driver</artifactId>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>examples</artifactId> <artifactId>examples</artifactId>
<version>1.18.0-SNAPSHOT</version> <version>1.18.0</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
View File
@@ -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.18.0-SNAPSHOT</version> <version>1.18.0</version>
</parent> </parent>
<artifactId>playwright</artifactId> <artifactId>playwright</artifactId>
@@ -48,15 +48,6 @@ import com.microsoft.playwright.impl.PageAssertionsImpl;
* You can pass this timeout as an option. * You can pass this timeout as an option.
* *
* <p> By default, the timeout for assertions is set to 5 seconds. * <p> By default, the timeout for assertions is set to 5 seconds.
*
* <p> To use Playwright assertions add the following dependency into the {@code pom.xml} of your Maven project:
* <pre>{@code
* <dependency>
* <groupId>com.microsoft.playwright</groupId>
* <artifactId>assertions</artifactId>
* <version>1.17.0</version>
* </dependency>
* }</pre>
*/ */
public interface PlaywrightAssertions { public interface PlaywrightAssertions {
/** /**
@@ -121,11 +121,15 @@ public class Connection {
message.addProperty("method", method); message.addProperty("method", method);
message.add("params", params); message.add("params", params);
JsonObject metadata = new JsonObject(); JsonObject metadata = new JsonObject();
if (stackTraceCollector != null) { if (apiName == null) {
metadata.add("stack", stackTraceCollector.currentStackTrace()); metadata.addProperty("internal", true);
} } else {
if (apiName != null) {
metadata.addProperty("apiName", apiName); metadata.addProperty("apiName", apiName);
// All but first message in an API call are considered internal and will be hidden from the inspector.
apiName = null;
if (stackTraceCollector != null) {
metadata.add("stack", stackTraceCollector.currentStackTrace());
}
} }
message.add("metadata", metadata); message.add("metadata", metadata);
transport.send(message); transport.send(message);
@@ -93,7 +93,7 @@ class TracingImpl implements Tracing {
includeSources = options.sources != null; includeSources = options.sources != null;
if (includeSources) { if (includeSources) {
if (!context.connection.isCollectingStacks()) { if (!context.connection.isCollectingStacks()) {
throw new PlaywrightException("Source root directories must be provided to enable source collection"); throw new PlaywrightException("Source root directory must be specified via PLAYWRIGHT_JAVA_SRC environment variable when source collection is enabled");
} }
params.addProperty("sources", true); params.addProperty("sources", true);
} }
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId> <artifactId>parent-pom</artifactId>
<version>1.18.0-SNAPSHOT</version> <version>1.18.0</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.
+1 -1
View File
@@ -1 +1 @@
1.18.0-rc1 1.18.0-beta-1642620709000
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>api-generator</artifactId> <artifactId>api-generator</artifactId>
<version>1.18.0-SNAPSHOT</version> <version>1.18.0</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
+1 -1
View File
@@ -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.18.0-SNAPSHOT</version> <version>1.18.0</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>
+1 -1
View File
@@ -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.18.0-SNAPSHOT</version> <version>1.18.0</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>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId> <groupId>com.microsoft.playwright</groupId>
<artifactId>update-version</artifactId> <artifactId>update-version</artifactId>
<version>1.18.0-SNAPSHOT</version> <version>1.18.0</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