예제 #1
0
 def setup(self):
     self.driver = init_driver()
     self.setting_page = SettingPage(self.driver)
     self.more_page = MorePage(self.driver)
     self.first_network_type_page = FirstNetworkType(self.driver)
     self.mobile_network_page = MobileNetworkPage(self.driver)
     self.display_page = DisplayPage(self.driver)
예제 #2
0
class TestMore:
    def setup(self):
        self.driver = init_driver()
        self.setting_page = SettingPage(self.driver)
        self.more_page = MorePage(self.driver)
        self.first_network_type_page = FirstNetworkType(self.driver)
        self.mobile_network_page = MobileNetworkPage(self.driver)
        self.display_page = DisplayPage(self.driver)

    def test_network_2g(self):
        self.setting_page.click_more()
        self.more_page.click_mobile_network()
        self.mobile_network_page.click_first_network_type()
        self.first_network_type_page.click_2g_button()

    def test_network_3g(self):
        self.setting_page.click_more()
        self.more_page.click_mobile_network()
        self.mobile_network_page.click_first_network_type()
        self.first_network_type_page.click_3g_button()
예제 #3
0
 def more(self):
     return MorePage(self.driver)
예제 #4
0
파일: page.py 프로젝트: zy1223/test_setting
 def more_page(self):
     return MorePage(self.driver)  # 更多页面