Skip to content

Commit d97f2db

Browse files
authored
Merge branch 'trunk' into renovate/gradle-8.x
2 parents 65534e7 + 18b7f8d commit d97f2db

File tree

22 files changed

+920
-268
lines changed

22 files changed

+920
-268
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2024 Software Freedom Conservancy (SFC)
190+
Copyright 2025 Software Freedom Conservancy (SFC)
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.junit.jupiter.api.Test;
44
import org.openqa.selenium.print.PageMargin;
55
import org.openqa.selenium.print.PrintOptions;
6-
6+
import org.openqa.selenium.print.PageSize;
77
import dev.selenium.BaseChromeTest;
88

99
public class PrintOptionsTest extends BaseChromeTest {
@@ -31,8 +31,8 @@ public void TestSize()
3131
{
3232
driver.get("https://www.selenium.dev/");
3333
PrintOptions printOptions = new PrintOptions();
34-
printOptions.setScale(.50);
35-
double current_scale = printOptions.getScale();
34+
printOptions.setPageSize(new PageSize(27.94, 21.59)); // A4 size in cm
35+
double currentHeight = printOptions.getPageSize().getHeight(); // use getWidth() to retrieve width
3636
}
3737

3838
@Test

0 commit comments

Comments
 (0)