Extend helper function for browser tests