摘要: import unittest import time from selenium import webdriver class MailLogin(unittest.TestCase): def setUp(self): url = 'https://mail.yeah.net/' self.br 阅读全文
posted @ 2020-07-06 21:51 搬砖小天使 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 1.driver.current_url:用于获得当前页面的URL 2.driver.title:用于获取当前页面的标题 3.driver.page_source:用于获取页面html源代码4.driver.current_window_handle:用于获取当前窗口句柄5.driver.windo 阅读全文
posted @ 2020-07-06 11:35 搬砖小天使 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1、安装python,配置环境变量。windows下是安装路径直接配到环境变量里面就可以 mac添加环境变量 在~/.bash_profile这个文件中,添加一行 alias python="/usr/local/Cellar/python/3.7.7/Frameworks/Python.frame 阅读全文
posted @ 2020-07-06 11:22 搬砖小天使 阅读(404) 评论(0) 推荐(0) 编辑