摘要:
<html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>单选和复选</title> </head> <body> </form> <h4>单选:性别</h4> <form> < 阅读全文
posted @ 2020-09-10 16:57
Alice1005
阅读(132)
评论(0)
推荐(0)
摘要:
无需代理 # 无代理情况 cls.driver = selenium.webdriver.Chrome() cls.driver.get("http://daido.sitetest1.com/") cls.driver.maximize_window() 需要代理,代理没有密码 # 有代理,代理无 阅读全文
posted @ 2020-09-10 10:23
Alice1005
阅读(186)
评论(0)
推荐(0)
摘要:
概述 有些场景的自动化测试中,需要带验证码登录,如下图,这种情况就需要识别图片中的验证码信息,然后转成文字进行登录 常用的方法有 1 利用baidu提供的api方法 2 利用pytesseract+Tesseract-OCR图片文字识别 3 使用一些训练方法识别(暂时未研究) 1 利用baidu提供 阅读全文
posted @ 2020-09-10 10:19
Alice1005
阅读(255)
评论(0)
推荐(0)
摘要:
安装 https://www.djangoproject.com/download/ 安装方法和安装普通的包一样 如果已经安装了python,并且django安装在了python下,那么是不需要配置path路径的,因为python已经配置过了 验证 >>> import django >>> dja 阅读全文
posted @ 2020-09-10 10:18
Alice1005
阅读(107)
评论(0)
推荐(0)
摘要:
基本导入 import time 调用的时候 time.sleep(3) 导入包里某个方法 from time import sleep 调用的时候 sleep(3) 区别import time和from time import sleep 两种方法都可以成功导入,但不同的导入方式,调用的方式也不同 阅读全文
posted @ 2020-09-10 10:17
Alice1005
阅读(265)
评论(0)
推荐(0)
摘要:
源代码 <div class="container-fluid"> <div class="row"> <div class="footer-bottom"> </div> </div> <div class="row step1-box"> <form action="/Recommend/Cho 阅读全文
posted @ 2020-09-10 10:16
Alice1005
阅读(260)
评论(0)
推荐(0)
摘要:
输入框类型 一般4种 input 短的,单行 textarea 多行 div式的editor框 也可能是更复杂的iframe的editor input类型赋值 elem_user = self.driver.find_element_by_xpath('//*[@id="username"]') e 阅读全文
posted @ 2020-09-10 10:14
Alice1005
阅读(506)
评论(0)
推荐(0)

浙公网安备 33010602011771号