User Case

A headless browser is a web browser without a graphical user interface. In TA, how can users run automation on it?


Solution

PhantomJS is a headless WebKit scriptable with a JavaScript API, lightning-fast testing without the browser. It’s means we will interact with the browser via console/command line (without UI). TestArchitect supported "execute command" built-in action that allows end-users to handle this.


Example:

- We have 2 files in the same directory:

image

 

- Hello.js:

image


- Script in TA:

image


- Result:

image