Browser automation for testing purposes