()
| 225 | } |
| 226 | |
| 227 | private void Maximize() |
| 228 | { |
| 229 | IWindow window = Driver.Manage().Window; |
| 230 | Size currentSize = window.Size; |
| 231 | window.Maximize(); |
| 232 | WaitFor(WindowHeightToBeGreaterThan(currentSize.Height), "Window height was not greater than " + currentSize.Height.ToString()); |
| 233 | WaitFor(WindowWidthToBeGreaterThan(currentSize.Width), "Window width was not greater than " + currentSize.Width.ToString()); |
| 234 | } |
| 235 | |
| 236 | private void ChangeSizeTo(Size targetSize) |
| 237 | { |