Exemple #1
0
 def auth(self):
     self.url()
     self.login(config.login)
     self.password(config.password)
     self.button_login_in()
     self.result = PersonalCabinet(self.driver)
     assert "тендерплан" in self.result.result_auth()
Exemple #2
0
 def authorization(self):
     self.url()
     self.login(Data.login)
     self.password(Data.password)
     self.button_login_in()
     self.result = PersonalCabinet(self.driver)
     assert "тендерплан" in self.result.result_auth()
Exemple #3
0
 def reg(self):
     self.url()
     self.name(Data.name)
     self.company_name(Data.company_name)
     self.email(Data.email)
     self.phone(Data.phone)
     self.password(Data.password)
     self.button_reg()
     time.sleep(8)
     self.result = PersonalCabinet(self.driver)
     assert "Добро пожаловать в Тендерплан" in self.result.result_reg()
Exemple #4
0
class Registration(MainPage):
    def registration(self):
        rand = Generation(self.driver).random()
        self.url()
        self.name(Data.name)
        self.company_name(Data.company_name)
        self.email(rand + Data.email)
        self.phone(Data.phone)
        self.password(Data.password)
        self.button_reg()
        time.sleep(8)
        self.result = PersonalCabinet(self.driver)
        assert "Добро пожаловать в Тендерплан" in self.result.result_reg()