Cybersecurity
DevOps Cloud
IT Operations Cloud
Situation
Application under test is Web apps developed with the Chrome Headless browsers and not able to be recognized using normal object spy in UFT One.
Resolution
Before running your tests on Headless Chrome, you have to perform some preparatory steps.
To prepare to run tests on Headless Chrome:
Check whether the ChromeDriver installed with UFT One matches the version of Headless Chrome you are using. If not, refer to the following table to get the correct ChromeDriver:
Headless Chrome 114 or earlier | Download the ChromeDriver from the official website. |
Headless Chrome 115 or later |
Download the Chrome for Testing from the Chrome for Testing availability dashboard. If you cannot find the version that matches the framework version, download it from Google Chrome Labs. |
Replace the chromedriver.exe file in the <UFT_One_installdir>\bin\WebDriver directory with the correct chromedriver.exe file.
Select Google Headless Chrome as your browser in the Record and Run Settings dialog box.
If you want to run steps that use AI object identification, we recommend enlarging the default browser size to make sure that all the controls you want to test are visible.
The browser size is controlled by the --window-size parameter (unit: pixel).
Add the browser size setting to the end of the <UFT_One_installdir>\bin\mic.ini file. For example: