/// <summary> /// Resizes the browser window to selected width. /// </summary> /// <param name="width">The window width.</param> public void ResizeBrowserWindow(int width) { Rectangle rect = new Rectangle(200, 200, width, 500); ActiveBrowser.ResizeContent(rect); ActiveBrowser.RefreshDomTree(); }