Greetings, I have been working on automating a mobile application using Appium. Unfortunately, I encountered an issue where the .sendkeys method was not allowing me to edit a text field, so I decided to switch to a JavaScript method as shown below.
driver.executeScript("document.getElementById('first-name').value = \"test\"");
The command above successfully fills the text field as intended. However, upon submitting the final form with the submit button, it indicates that the "First Name" has not been entered, suggesting that the value entered was not considered.
Example: https://i.sstatic.net/hy5JG.jpg
Does anyone have any ideas on what could be going wrong here?
Thank you