I am encountering a challenge with automating gist creation on GitHub. The issue arises when trying to input text into the gist content-box (see attached image). Despite attempting to use Javascript executer, I have not been successful.
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.evaluate("//*[@id='gists']/div[2]/div/div[2]/div/div/div[5]/div[1]/div/div/div/div[5]/div/pre", document, null, 9, null).singleNodeValue.innerHTML;=" + "s");
I would greatly appreciate any suggestions on how to enter text using Selenium.
URL : https://gist.github.com/