class LoadVideoBussiness: """创建视频上传的登录业务""" def __init__(self, driver): self.common = Commonlib(driver) self.loginhandle = LoadVideoHandle(driver) def loadvideologin(self, username, pwd): """登录上传视频业务的代码""" self.common.open_browser("http://10.168.103.151/admin/#/") self.loginhandle.input_username(username) self.loginhandle.input_pwd(pwd) self.loginhandle.click_btn() t.sleep(3)
class LoginBussiness: """登录的业务层""" def __init__(self, driver): # self.basedriver = BaseDriver() # driver = self.basedriver.getdriver() self.common = Commonlib(driver) self.loghandle = LoginHandle(driver) def logoin(self, username, pwd): self.common.open_browser("http://10.168.103.151/web/#/login") self.common.wait_time(1) self.loghandle.input_username(username) self.common.wait_time(1) self.loghandle.input_pwd(pwd) self.common.wait_time(1) self.loghandle.click_btn() t.sleep(5)