Skip to content

Commit

Permalink
Merge branch 'trunk' into renovate/gradle-8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 authored Jan 3, 2025
2 parents 65534e7 + 18b7f8d commit d97f2db
Show file tree
Hide file tree
Showing 22 changed files with 920 additions and 268 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Software Freedom Conservancy (SFC)
Copyright 2025 Software Freedom Conservancy (SFC)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.jupiter.api.Test;
import org.openqa.selenium.print.PageMargin;
import org.openqa.selenium.print.PrintOptions;

import org.openqa.selenium.print.PageSize;
import dev.selenium.BaseChromeTest;

public class PrintOptionsTest extends BaseChromeTest {
Expand Down Expand Up @@ -31,8 +31,8 @@ public void TestSize()
{
driver.get("https://www.selenium.dev/");
PrintOptions printOptions = new PrintOptions();
printOptions.setScale(.50);
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
}

@Test
Expand Down
Loading

0 comments on commit d97f2db

Please sign in to comment.