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

Method ChangeSizeTo

dotnet/test/webdriver/WindowTests.cs:236–242  ·  view source on GitHub ↗
(Size targetSize)

Source from the content-addressed store, hash-verified

234 }
235
236 private void ChangeSizeTo(Size targetSize)
237 {
238 IWindow window = Driver.Manage().Window;
239 window.Size = targetSize;
240 WaitFor(WindowHeightToBeEqualTo(targetSize.Height), "Window height was " + window.Size.Height + " not " + targetSize.Height.ToString());
241 WaitFor(WindowWidthToBeEqualTo(targetSize.Width), "Window width was not " + targetSize.Width.ToString());
242 }
243
244 private void ChangeSizeBy(int deltaX, int deltaY)
245 {

Callers

nothing calls this directly

Calls 2

ManageMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected