In order to dynamically add the following element to the DOM during run time, I need assistance...
<input type="text" name="imagesToAdd" value="3566">
My initial attempt was to use Selenium JavascriptExecutor for this task. However, I encountered an error message stating "org.openqa.selenium.WebDriverException: document.getElementById(...).append is not a function"
((JavascriptExecutor) driver).executeAsyncScript("document.getElementById('post-ad_title').append('<input type=\"text\" name=\"imagesToAdd\"value=\"3566\">')");