Add switchTo() and close() methods.