await driver.findElement(By.id('closeBtn')).click();
or
await driver.findElement(By.xpath('//*[@id="closeBtn"]')).click();
When attempting to use the above conditions for a pop-up, it does not work as expected.
An error is displayed:
Unable to locate element: //*[@id="closeBtn"]