public Task ClosePageAsync(bool runBeforeUnload) { if (runBeforeUnload) { return(Client.SendAsync(new PageCloseRequest())); } else { return(_browser.ClosePageAsync(this)); } }
public Task ClosePageAsync(bool runBeforeUnload) => runBeforeUnload?Client.SendAsync(new PageCloseRequest()) : _browser.ClosePageAsync(this);