I want to automate a process which has a web application. When I inspect the application I found it is using jQuery function.
If I want to call those third party jQuery function it’s not working.
I used inject js
@ppr,
i am selecting the respective element.
for example if a jquery function called for menu then my target element is menu item.
@venkat4u
What is happening If you use the entire Webpage as target and let executed the ja Script against this?
no difference.
When i use this function $(’#pilot_suggestion’).dialog(‘isOpen’)
i am getting error like reference error: $ is not defined
@venkat4u
In my First Interpretation so jquery is not recognized as the Dollar Signal stands for it. Maybe There is a jquery Statement eg Version Info available and you CAN User this for a Test run
my script is like similar this
var head = document.getElementsByTagName(“head”)[0];
var script = document.createElement(“script”);
script.src = “//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js ”;
script.onload = function() {
debugger;
document.activeElement.value=parameter;
var ElementID= $(this).attr(‘id’);
};
head.appendChild(script);
}
Were you able to find a resolution to your problem? I am in a similar situation, where I need to run these four statements:
("#bizXSearchField-I").val('manage data');
("#bizXSearchField-I").trigger(‘search’);
("#bizXSearchField-I").focus();
("#bizXSearchField-I").focus();
They work from the Chrome console, but not from the Inject JS activity
I created a custom activity called “jQuery Execution Activities”.
https://marketplace.uipath.com/listings/jquery-execution-activities1018
You may download from the above link or search “jqueryexecution” in your UiPath Studio’s Manage Packages window.
Hope you find it useful.