Please find the above image to inspect.
I want to click not now button but it is not able find it.
I have tried below code:
wait = WebDriverWait(driver, 10)
wait.until(EC.element_to_be_clickable((By.XPATH, "//button[text()='Not Now']"))).click()
notification1 = driver.find_element_by_xpath("//*[contains(@class,'pV7Qt')]")
offbt = notification1.find_element_by_xpath(".//*[@class='ABCxa']//*[@class='cmbtv']//*[@class='sqdOP yWX7d "
"y3zKF ']")
offbt.click()
wait = WebDriverWait(driver, 10)
notification = driver.find_element_by_xpath("//*[contains(@class,'pbNvD')]")
offbt1 = notification.find_element_by_xpath(".//*[@class='piCib']//*[@class='mt3GC']//*[@class='aOOlW HoLwm ']")
offbt1.click()
