Example #1
0
class TestNetwork:
    def setup(self):
        self.driver=init_driver()
        self.network_page = NetworkPage(self.driver)


    def test_network_3g(self):
        # 点击更多
        self.network_page.click_more()
        # 点击移动网络
        self.network_page.click_move_network()
        # 点击首选网络类型
        self.network_page.click_network_first()
        # 点击3G
        self.network_page.click_3G()



    def test_network_2g(self):
        # 点击更多
        self.network_page.click_more()
        # 点击移动网络
        self.network_page.click_move_network()
        # 点击首选类型网络
        self.network_page.click_network_first()
        # 点击2G
        self.network_page.click_2G()
Example #2
0
class TestNetwork:
    def setup(self):
        self.driver=init_driver()
        self.network_page=NetworkPage(self.driver)
    def test_mobile_network_2g(self):
        # self.network_page.click_more()
        # self.network_page.click_neteork()
        # self.network_page.click_firstnetwork()
        self.network_page.click_2G()
    def test_mobile_network_3g(self):
        # self.network_page.click_more()
        # self.network_page.click_neteork()
        # self.network_page.click_firstnetwork()
        self.network_page.click_3G()