We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef7d1c6 commit 2a08ad6Copy full SHA for 2a08ad6
examples/java/src/test/java/dev/selenium/interactions/PrintOptionsTest.java
@@ -31,8 +31,8 @@ public void TestSize()
31
{
32
driver.get("https://www.selenium.dev/");
33
PrintOptions printOptions = new PrintOptions();
34
- printOptions.setScale(.50);
35
- double current_scale = printOptions.getScale();
+ printOptions.setPageSize(new PageSize(27.94, 21.59)); // A4 size in cm
+ double currentHeight = printOptions.getPageSize().getHeight(); // use getWidth() to retrieve width
36
}
37
38
@Test
0 commit comments