Highlighted
Absent Member.
Absent Member.
209 views

JavaScript in TruClient protocol

Hi,

I use LR 11 TruClient protocol. But all my javascript in "Object" section in field "JavaScript" are failed. I try use "window.document.querySelector('input');" for example. I get error "Failed to find the object. Select the step and ensure that the object is visible in the application..." by clicking jg highlight icon.
Type "window.document.querySelector('input')[1];" in "JavaScript" field and i get "Exception occured in Javascript code: TypeError: window.document.querySelector("input")is null"

Why my JS are not valid?
0 Likes
3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: JavaScript in TruClient protocol

Install the the TruClient patch on top of LR11 and refer to TruClient tips & tricks document.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: JavaScript in TruClient protocol

Give me a link to this patch, please.
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: JavaScript in TruClient protocol

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.