02-03-22 06:54 AM
Answered! Go to Answer.
02-03-22 09:15 AM
function writeText(searchText){
document.getElementsByName("q")[0].value = searchText;
document.getElementsByName("btnK")[0].click();
}
writeText("Blue Prism")
Now in order to execute both these functions one by one I have used one Navigate Stage and have used the action "Insert Javascript Fragment" twice. The first time I am inserting the "Insert JS Fragment" data item and the next time I and again using the same action for inserting the "Invoke JS Fragment" data item.function_name()
which in my case was writeText("Blue Prism")
02-03-22 07:58 AM
document.getElementById(<Object_Id>).click()
and see if that works. I am attaching a sample workflow for the same which can give you some idea.02-03-22 09:05 AM
02-03-22 09:15 AM
function writeText(searchText){
document.getElementsByName("q")[0].value = searchText;
document.getElementsByName("btnK")[0].click();
}
writeText("Blue Prism")
Now in order to execute both these functions one by one I have used one Navigate Stage and have used the action "Insert Javascript Fragment" twice. The first time I am inserting the "Insert JS Fragment" data item and the next time I and again using the same action for inserting the "Invoke JS Fragment" data item.function_name()
which in my case was writeText("Blue Prism")
14-04-24 07:49 PM
Similarly I am facing an issue, using click in navigate I am not able to perform right click operation in a webpage using HTML spied element.
In the HTML element in match attributes it only checked with xpath/webpath.
Is there any way to perform right click using xpath invoking javascript?