Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Are there any examples of the types of problems that ExecLine could help to resolve?

Are there any examples of the types of problems that ExecLine could help to resolve?

ExecLine is very similar to ExecScript, but ExecScript takes a LIST OF STRING as its argument.

If the browser cannot evaluate a command after ExecLine sends it, SilkTest is unable to provide you any further information such as runtime errors because it cannot retrieve them from the browser. Furthermore, SilkTest cannot know how much or how little of the language set (JavaScript) that the browser supports.


[ ]Browser.SetActive ()
[ ]BrowserPage.ExecLine ("alert("hello world")", TRUE)

Our recommendation for debugging ExecLine statements is to start with something simple, like the example shown above. This code creates a modal dialog containing "hello world" and an OK button. If this code works correctly, that indicates that everything is configured properly and you can keep building up the script until you get a working script. We suggest that you debug a script independently of SilkTest. For instance, type javascript:alert("hello") into the browser location bar to test your JavaScript code.

Some examples of the types of problems and information ExecMethod can be used to resolve or retrieve;


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:18
Updated by:
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.