MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / CanPrintWithMostParams

Method CanPrintWithMostParams

dotnet/test/webdriver/PrintTests.cs:58–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 [Test]
59 public void CanPrintWithMostParams()
60 {
61 var options = new PrintOptions()
62 {
63 Orientation = PrintOrientation.Landscape,
64 ScaleFactor = 0.5,
65 PageDimensions = new PrintOptions.PageSize { Width = 200, Height = 100 },
66 PageMargins = new PrintOptions.Margins { Top = 1, Bottom = 1, Left = 2, Right = 2 },
67 OutputBackgroundImages = true,
68 ShrinkToFit = false
69 };
70
71 options.AddPageRangeToPrint("1-3");
72
73 var pdf = printer.Print(options);
74
75 Assert.That(pdf.AsBase64EncodedString, Does.Contain(MagicString));
76 }
77
78 [Test]
79 public void PageSizeCannotBeNull()

Callers

nothing calls this directly

Calls 2

AddPageRangeToPrintMethod · 0.80
PrintMethod · 0.45

Tested by

no test coverage detected