A. 验证响应时间是否小于某个值 tests[Response time is less than 200ms] = responseTime 200
B. POST 请求的状态响应码是否是某个值 tests[Successful POST request] = responseCode.code === 201 || responseCode.code === 202
C. name是否包含某个值 tests[Status code name has string] = responseCode.name.has(Created)
以下是selenium元素定位方式的是(多选)
A. Id查找元素
B. Name查找元素
C. Class Name查找元素
D. Xpath定位
E. tag定位
selenium中常用鼠标点击事件包括 单击, (填空1), (填空2), (填空3).
填空1 ____________
填空2 ____________
填空3 ____________
给以下选项排序实现 明确已经打开了百度,然后搜素selenium截图退出 功能.(回答格式:A B C D E F)
A. driver.find_element_by_name("pwd").send_keys("selenium") B. driver.get("https://www.baidu.com") C. driver.get_screenshot_as_file(r'img\test.png') D. driver.quit() E. EC.title_contains("百度") F. driver.find_element_by_id("su").click()