def fxa_register()

in pages/desktop/frontend/login.py [0:0]


    def fxa_register(self):
        email = f"{reusables.get_random_string(10)}@restmail.net"
        password = reusables.get_random_string(12)
        self.find_element(*self._email_locator).send_keys(email)
        # catching the geckodriver click() issue, in cae it happens here
        # issue - https://github.com/mozilla/geckodriver/issues/1608
        try:
            continue_btn = self.wait.until(
                EC.element_to_be_clickable((By.ID, "submit-btn"))
            )
            continue_btn.click()
        except TimeoutException as error:
            print(error.msg)
            pass
        # verify that the fxa register form was opened
        time.sleep(5)
        self.wait.until(
            EC.element_to_be_clickable(self._password_locator),
            message=f"Password input field not displayed; "
            f"FxA card header was {self.find_element(*self._login_card_header_locator).text}",
        )
        self.find_element(*self._password_locator).send_keys(password)
        self.find_element(*self._repeat_password_locator).send_keys(password)
        self.find_element(*self._age_locator).send_keys(23)
        self.find_element(*self._login_btn_locator).click()
        # sleep to allow FxA to process the request and communicate with the email client
        time.sleep(10)
        verification_code = self.get_verification_code(email)
        self.find_element(*self._code_input_locator).send_keys(verification_code)
        self.find_element(*self._login_btn_locator).click()