patch test-in-browser for browser window testing