proximus_auto_add_vol_pack.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:proximus_auto_add_vol_pack 作者: salcin 项目源码 文件源码
def go_to_internet(self):

        # if a ad is displayed, dismiss it
        try:
            WebDriverWait(self.browser, 5).until(EC.presence_of_element_located((By.ID, "ns_7_7OGJPDU51OIB50IVTR847P20G2_")))       # wait 5 sec to find if a ad is displayed
            self.browser.find_element_by_xpath('//a[@href="javascript: void(0)"]').click()
        except Exception:
            pass

        # wait the loading page
        self.wait_before_continue('ns_7_7OGJPDU518D6A0ACILTFQT2004_myBillAndProducts')

        try:
            self.browser.find_element_by_xpath('//i[contains(@class, "icon-Internetlaptop")]').click()
            self.wait_before_continue("ns_7_7OGJPDU51OKG60I9TQGKIB1004_myFixedInternetServices")

        except:
            self.error_take_screenshot('to go on the internet page')
            exit(3)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号