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()
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()
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()
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()