Skip to content

Commit e9727a7

Browse files
committed
1.5
- Fixed executeJS for PlaywrightWindow
1 parent d5275e4 commit e9727a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.osiris.headlessbrowser</groupId>
88
<artifactId>Headless-Browser</artifactId>
9-
<version>1.4</version>
9+
<version>1.5</version>
1010
<repositories>
1111
<repository>
1212
<id>jitpack</id>

src/main/java/com/osiris/headlessbrowser/PlaywrightWindow.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ public Document getDocument() {
108108
* Note that the current {@link NodeContext} must have been initialised with a debugOutputStream to see JavaScript console output. <br>
109109
*/
110110
public PlaywrightWindow executeJS(String jsCode) throws NodeJsCodeException {
111-
jsContext.executeJavaScript("await page.evaluate(() => {\n" +
111+
jsContext.executeJavaScript("await page.evaluate(`\n" +
112112
jsCode +
113-
"});\n");
113+
"`);\n");
114114
return this;
115115
}
116116

0 commit comments

Comments
 (0)