예제 #1
0
class TestXueqiu(object):
    def setup(self):
        self.driver = webdriver.Remote(desired_capabilities=DesiredCapabilities.CHROME)
        self.driver.implicitly_wait(10)
        self.driver.get("https://xueqiu.com")
        self.main = MainPage(self.driver)

    def teardown(self):
        self.driver.quit()

    def test_search(self):
        self.main.search("alibaba").follow("1688")
예제 #2
0
 def loginSuccessByPassword(self, account, password):
     from page_object.page.MainPage import MainPage
     return MainPage()
예제 #3
0
 def main(cls):
     cls.getClient().restart_app()
     return MainPage()
예제 #4
0
 def main(cls):
     #driver的类型不受限制
     cls.getClient().restart_app()
     #重启之后仍然是首页
     return MainPage()
예제 #5
0
 def main(cls):  # 这里要改成cls,不应该是self
     AndroidClient.restart_app()
     return MainPage()
예제 #6
0
 def test_price(self):
     main = MainPage()
     assert main.gotoSelected().getPriceByName("科大讯飞") == 28.83
예제 #7
0
 def main(self):
     AndroidClient.restart_app()
     return MainPage()
예제 #8
0
파일: App.py 프로젝트: lvting18/pageobject
 def homepage(cls):
     cls.getClient().restart_app()
     return MainPage()
예제 #9
0
 def main(cls):
     cls.getClient().install_app()
     return MainPage()
예제 #10
0
 def main(cls):
     # cls.driver=BasePage.driver
     cls.getClient().restartApp()
     return MainPage()
예제 #11
0
 def setup(self):
     self.driver = webdriver.Remote(desired_capabilities=DesiredCapabilities.CHROME)
     self.driver.implicitly_wait(10)
     self.driver.get("https://xueqiu.com")
     self.main = MainPage(self.driver)