Changed naming of attempts to max_attempts and changed css_selector