Ejemplo n.º 1
0
 def setup(self):
     # chrome_options = webdriver.ChromeOptions()
     # chrome_options.debugger_address = '127.0.0.1:9222'
     # self.driver = webdriver.Chrome(options=chrome_options)
     # self.driver.implicitly_wait(2)
     # 再次优化单个测试用例的contact = ContactPage(self.work)取出
     self.work = Wework()
     self.contact = ContactPage(self.work)
Ejemplo n.º 2
0
 def __init__(self, wework: Wework):
     self._driver = wework.driver
     wework.goto_contactpage()
     self.contact = ContactPage(wework)
Ejemplo n.º 3
0
 def setup(self):
     self.work = Wework()
     self.contact = ContactPage(self.work)
Ejemplo n.º 4
0
 def setup_class(self):
     self.wework = WeworkPage()
     self.contact = ContactPage(self.wework.driver)
     self.profile = ProfilePage(self.wework.driver)
     self.wework.driver.implicitly_wait(5)
Ejemplo n.º 5
0
 def test_add_member(self):
     contact = ContactPage(self.driver)
     contact.add_member("mango", "man", "go", "13011112222")
     assert contact.get_tips() == "OK"