1
0
mirror of synced 2026-05-22 18:53:15 +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>
<groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
</parent>
<artifactId>driver-bundle</artifactId>
+1 -1
View File
@@ -6,7 +6,7 @@
<parent>
<groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
</parent>
<artifactId>driver</artifactId>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>examples</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<name>Playwright Client Examples</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
</parent>
<artifactId>playwright</artifactId>
@@ -48,15 +48,6 @@ import com.microsoft.playwright.impl.PageAssertionsImpl;
* You can pass this timeout as an option.
*
* <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 {
/**
@@ -121,11 +121,15 @@ public class Connection {
message.addProperty("method", method);
message.add("params", params);
JsonObject metadata = new JsonObject();
if (stackTraceCollector != null) {
metadata.add("stack", stackTraceCollector.currentStackTrace());
}
if (apiName != null) {
if (apiName == null) {
metadata.addProperty("internal", true);
} else {
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);
transport.send(message);
@@ -93,7 +93,7 @@ class TracingImpl implements Tracing {
includeSources = options.sources != null;
if (includeSources) {
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);
}
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId>
<artifactId>parent-pom</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<packaging>pom</packaging>
<name>Playwright Parent Project</name>
<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>
<artifactId>api-generator</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<name>Playwright - API Generator</name>
<description>
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>
<groupId>com.microsoft.playwright</groupId>
<artifactId>test-local-installation</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<name>Test local installation</name>
<description>Runs Playwright test suite (copied from playwright module) against locally cached Playwright</description>
<properties>
+1 -1
View File
@@ -9,7 +9,7 @@
</parent>
<groupId>com.microsoft.playwright</groupId>
<artifactId>test-spring-boot-starter</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<name>Test Playwright With Spring Boot</name>
<properties>
<spring.version>2.4.3</spring.version>
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>com.microsoft.playwright</groupId>
<artifactId>update-version</artifactId>
<version>1.18.0-SNAPSHOT</version>
<version>1.18.0</version>
<name>Playwright - Update Version in Documentation</name>
<description>
This is an internal module used to update versions in the documentation based on