I have been trying to automate clicking on a pop up as soon as the site opens up but the error "selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found" is shown. and the pop up doesn't close.
I tried to execute following statements:
**driver.find_element(By.NAME,"bBPb-close").click()**
on the following html code:
The pop up didn't close and an error occurred.