(Size targetSize)
| 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 | { |