[Browser test] Reintroduce headless browser test support

Change-Id: Ie9a908a40ad9210fb0df6bdb20f0c6a35ce548d8
Merge "[Browser test] Reintroduce headless browser test support"