What would be the correct full script, when i put the function inside the error not defined is produced, even when i remove the javascript: it also produce the same error
So meaning we need to know what the script for the function is and then paste that into the injectjs, whats the easiest way to know whats the script for the function displaytraninquiry()
You can indicate whole of the window as well…and atleast one argument is to be given I believe…as Of now I see you are not indicating anything…give atleast. One argument and create a function and insite it call the java script you needed on the page
So indicate whole window
Then function as below
Function(e)
{
Can include logs to check if this is being invoked
Call the function you need here- displaytraninquiry();
}
Im able to execute the js function using your method. But if you dont mind are you able to explain a little bit what function (e,v) is and executionworld do
function(e,v) : e is assigned element which is indicated by InjectJSscriptActivity. v is assigned from parameter property of InjectJSscriptActivity. We can omit these arguments. ( function() also works in this case)
Regarding executionworld property, the following official document will help you.