I came across the following code snippet:
<body>
<table>
<tr>
<td style= "width:30%;">
<img class = "new" src="images/new-icon.png">
<td>
<h1>Hello there!</h1>
<p>Thanks for logging in
<span class = "blue">image edit application</span>.
Get started by reading our
<a href = "https:abc">documentation</a>
or use the xxxxxxxxxxxx.
</table>
</body>
Now, I am looking to enhance this code by adding extra text after "Hello there!" in the header
using selenium webdriver with java script. Can anyone provide guidance on how to achieve this?I attempted to locate the "Hello there!" heading using xpath and then tried to add text using sendKeys method. However, no text is being added and there are no errors thrown by the code. I am working on editing an HTML file through an online editor using selenium.