Context: I have to automate the time setting with the following rule: The configured time must be 40 minutes longer than the current time.
Field details: The field is not editable. When I click on the field, I press an analog clock popup and after I manually select the time, then the field starts showing the selected time (rule: I must have chosen 40 minutes more than the current time)
Question: How do I get my automation to take the current time, add 40min and put this value in the field without having to open the popup?
I tried this, but it didn't work: driver.findElement(By.name("dateSend")).sendKeys("22/07/2020-17:28");
ERRO: org.openqa.selenium.ElementNotInteractableException: element not interactable
Below are the images of the code and field:
Imagem do campo: não editável enter image description here
Código do campo enter image description here
Imagem do popup enter image description here
Código do popup enter image description here
Campo 'Disparo' após selecioada a hora: enter image description here
Código do campo com horário enter image description here