Selenium WebDriver throws 'ElementNotInteractableException' when clicking a button in a jQuery UI dialog on Chrome 120
I just started working with After trying multiple solutions online, I still can't figure this out..... I'm updating my dependencies and Hey everyone, I'm running into an issue that's driving me crazy..... I'm working on a project and hit a roadblock. I'm working with an scenario with Selenium WebDriver when attempting to click a button inside a jQuery UI dialog. The dialog is dynamically generated, and while the button is visible, I'm continuously receiving an `ElementNotInteractableException`. Here's the relevant snippet of my code: ```python from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC # Initialize WebDriver options = webdriver.ChromeOptions() options.add_argument('--headless') # Running in headless mode for CI driver = webdriver.Chrome(options=options) driver.get('https://example.com') # Triggering the dialog to open open_dialog_button = driver.find_element(By.ID, 'open-dialog') open_dialog_button.click() # Waiting for the dialog to be present WebDriverWait(driver, 10).until(EC.visibility_of_element_located((By.ID, 'dialog'))) # Trying to click the button inside the dialog try: dialog_button = driver.find_element(By.ID, 'dialog-button') dialog_button.click() except Exception as e: print(f'behavior: {e}') ``` I've confirmed that the button is indeed visible and enabled when I attempt to click it. I also tried adding a small wait before the click, but it didn't resolve the scenario. Additionally, I verified that there's no overlapping element that could be intercepting the click. The dialog is implemented using jQuery UI, and I suspect there might be some timing scenario with the rendering. Has anyone else experienced similar issues with jQuery UI dialogs, and how did you resolve the `ElementNotInteractableException`? Any tips on ensuring the button is ready for interaction would be greatly appreciated. For context: I'm using Python on Linux. Any ideas what could be causing this? How would you solve this? My development environment is macOS. Thanks in advance! The stack includes Python and several other technologies. What am I doing wrong? The project is a service built with Python. Thanks in advance!