Browser Automation
Overview
HeadSpin's Browser Automation allows you to run Selenium scripts on browsers on real computer machines connected to Pboxes. If your org has access to Performance Sessions, the data from these browser sessions can also be recorded and examined in the Performance Sessions tab.
Currently all browsers run on macOS machines; support for Windows and Linux machines are coming soon.
Automation Configuration
To start automation on a browser, you first need to get the browser's Automation Configuration. Available browsers can be found in the Remote Control > Devices tab. Each browser appears on its own row, similar to device rows. If you don't see any browser available, please contact the HeadSpin support team for access.
Each browser row includes basic information about the browser version (listed under the "OS" column). To see a browser's Aumation Configuration settings, click on its row More Actions symbol and select Automation Configuration.
The Automation Configuration dialog will pop up. From this dialog, you can copy the Web Driver URL and capabilities for this browser. This configuration can be used with the HeadSpin Appium IDE or Selenium Scripts.
Browser Automation with Selenium Scripts
For a wider set of actions and more test automation, the browser configuration can be used to configure Selenium scripts. Below is an example of a simple Selenium script in Python.
Time Between Commands
The default time the server will wait for a new command is 60 seconds. Once a session has been established, and after every command is sent, if there is no new command within 60 seconds, the session will end. This value can be adjusted with the capability <code class="dcode">headspin:newCommandTimeout</code>. For example:
Watching Live Browser Automation Sessions
When there's a live session on a browser, the Start button to the left of the browser icon will turn into the magnifying glass, as shown in the screenshot below.
Anyone in your team can click on the magnifying glass to view the browser UI and the automation logs in real time.
Viewing Browser Automation Performance Sessions
Sessions recorded with <code class="dcode">"headspin:capture"</code>: true will show up in the Performance Sessions tab, in the session list.
Both the Waterfall UI and the Issue UI are available for these sessions. Click on a UI to view the captured data.