The most common way to populate a text field is using the Action "Populate Text Field on Web Page".

Additionally, in order to click on a link or press a button, one can use either the "Click Link on Web Page" or the "Press Button on Web Page" Actions.


An alternative and more advanced way to achieve the above, is using JavaScript.


In general, JavaScript functions can be executed through the "Execute Javascript Function on Web Page" Action.


In order to populate a text field, the following function can be used:


function ExecuteScript()
{
document.querySelectorAll("enter your CSS selector here")[0].value="test";
}


OR


function ExecuteScript()
{
document.querySelectorAll("enter your CSS selector here")[0].innerText="test";
}



In order to click on a link / press on a button,


function ExecuteScript()
{
document.querySelectorAll("enter your CSS selector here")[0].click();
}