Listen for when selenium is ready instead of hardcoded sleep