Skip to content

Commit b9b3552

Browse files
authored
chore: roll driver, fix canSpecifyPreinstalledNodeJsAsEnv on windows (microsoft#1496)
1 parent 1b2ac3f commit b9b3552

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Playwright is a Java library to automate [Chromium](https://www.chromium.org/Hom
1111

1212
| | Linux | macOS | Windows |
1313
| :--- | :---: | :---: | :---: |
14-
| Chromium <!-- GEN:chromium-version -->122.0.6261.29<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
14+
| Chromium <!-- GEN:chromium-version -->122.0.6261.39<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1515
| WebKit <!-- GEN:webkit-version -->17.4<!-- GEN:stop --> ||||
1616
| Firefox <!-- GEN:firefox-version -->122.0<!-- GEN:stop --> | :white_check_mark: | :white_check_mark: | :white_check_mark: |
1717

playwright/src/main/java/com/microsoft/playwright/Page.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,10 @@ class PdfOptions {
20552055
* Paper margins, defaults to none.
20562056
*/
20572057
public Margin margin;
2058+
/**
2059+
* Whether or not to embed the document outline into the PDF. Defaults to {@code false}.
2060+
*/
2061+
public Boolean outline;
20582062
/**
20592063
* Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
20602064
*/
@@ -2077,6 +2081,10 @@ class PdfOptions {
20772081
* Scale of the webpage rendering. Defaults to {@code 1}. Scale amount must be between 0.1 and 2.
20782082
*/
20792083
public Double scale;
2084+
/**
2085+
* Whether or not to generate tagged (accessible) PDF. Defaults to {@code false}.
2086+
*/
2087+
public Boolean tagged;
20802088
/**
20812089
* Paper width, accepts values labeled with units.
20822090
*/
@@ -2139,6 +2147,13 @@ public PdfOptions setMargin(Margin margin) {
21392147
this.margin = margin;
21402148
return this;
21412149
}
2150+
/**
2151+
* Whether or not to embed the document outline into the PDF. Defaults to {@code false}.
2152+
*/
2153+
public PdfOptions setOutline(boolean outline) {
2154+
this.outline = outline;
2155+
return this;
2156+
}
21422157
/**
21432158
* Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
21442159
*/
@@ -2176,6 +2191,13 @@ public PdfOptions setScale(double scale) {
21762191
this.scale = scale;
21772192
return this;
21782193
}
2194+
/**
2195+
* Whether or not to generate tagged (accessible) PDF. Defaults to {@code false}.
2196+
*/
2197+
public PdfOptions setTagged(boolean tagged) {
2198+
this.tagged = tagged;
2199+
return this;
2200+
}
21792201
/**
21802202
* Paper width, accepts values labeled with units.
21812203
*/

playwright/src/test/java/com/microsoft/playwright/TestPageAddScriptTag.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.junit.jupiter.api.Test;
44
import org.junit.jupiter.api.condition.DisabledIf;
55

6+
import java.io.File;
67
import java.nio.file.Path;
78
import java.nio.file.Paths;
89

@@ -16,6 +17,6 @@ void shouldIncludeSourceURLWhenPathIsProvided() {
1617
Path path = Paths.get("src/test/resources/injectedfile.js");
1718
page.addScriptTag(new Page.AddScriptTagOptions().setPath(path));
1819
String result = (String) page.evaluate("() => window['__injectedError'].stack");
19-
assertTrue(result.contains("resources/injectedfile.js"));
20+
assertTrue(result.contains("resources" + File.separator + "injectedfile.js"), result);
2021
}
2122
}

scripts/CLI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.42.0-alpha-1707967288000
1+
1.42.0-alpha-1708140911000

0 commit comments

Comments
 (0)