how to close current tab using selenium webdriver code example Example: selenium close current tab driver.close();