Open rogaha opened 2 months ago
@adeprez can you have a look?
Hello @rogaha, could you share with us the Google Docs Form the agent is trying to interact with?
I guess the element was made uninteractive before the agent could perform the actual action. It could be due to a human interaction on the page, or an unexpected DOM change that made the element non accessible.
Implement a check to ensure the element is fully rendered and visible before interacting with it.
Actually we have this check: agent will only propose actions for elements he can interact with (i.e. rendered, visible, non disabled, non overlayed).
Description:
An error occurs when attempting to fill fields in a Google Docs form titled "FORMULÁRIO DE SISTEMA DE COMPENSAÇÃO PARA UNIDADES CONSUMIDORAS". The automation process fails to interact with certain input fields, generating a "Message: element not interactable" error.
Steps to Reproduce:
Navigate to the Google Docs form titled "FORMULÁRIO DE SISTEMA DE COMPENSAÇÃO PARA UNIDADES CONSUMIDORAS". Attempt to fill in the following fields: Unidade Consumidora: '2476760' Nome do Titular: 'ANTONIO CARLOS RUBINI' CPF/CNPJ: '94246424820' Endereço: 'Avenida Roseira, 1543 - Prq. Residencial dos Girassois, CAMPO GRANDE, 79091848' The system attempts to interact with the input field but fails with the error message. Expected Behavior:
The form fields should be filled with the provided data without errors.
Actual Behavior:
The system throws an error: "Message: element not interactable" when trying to click on /html/body/div[2]/div[3]/div[2]/div/div[2]/div/div/div/input.
Error Logs:
Possible Cause:
The targeted input element might not be visible or enabled at the time of interaction, resulting in an "element not interactable" error. Timing or rendering issues within the form interface may be preventing the automation tool from interacting with the field. Suggested Fix:
Implement a check to ensure the element is fully rendered and visible before interacting with it. Introduce waits or retries to handle timing issues, such as WebDriverWait to wait until the element is interactable. Review the form's HTML structure to ensure the XPath /html/body/div[2]/div[3]/div[2]/div/div[2]/div/div/div/input is targeting the correct input element.
Environment:
Browser: Chrome 128.0.6613.115 Automation Tool: ChromeDriver OS: macOS (or relevant operating system)