随笔分类 -  Python3.7.5之Selenium系列

摘要:https://www.jb51.net/article/164615.htm 课外URL http://darrending.com/2016/07/11/qt%E8%AE%BE%E8%AE%A1%E5%8F%AF%E8%87%AA%E9%80%82%E5%BA%94%E7%9A%84%E7%94 阅读全文
posted @ 2021-08-11 16:53 字符蹚浑水 阅读(1093) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/liunaixu/p/11077960.html 前言 有些登录的接口会有验证码:短信验证码,图形验证码等,这种登录的话验证码参数可以从后台获取的(或者查数据库最直接)。 获取不到也没关系,可以通过添加cookie的方式绕过验证码。 一、抓登 阅读全文
posted @ 2020-09-19 16:37 字符蹚浑水 阅读(299) 评论(0) 推荐(0)
摘要:1、用判断下列语句是否被隐藏 driver.find_element_by_xx().is_displayed() # 如果返回false,表示被隐藏 2、通过get_attribue()表达式获取属性值 driver.find_element_by_xx().get_attribute('atti 阅读全文
posted @ 2020-07-04 10:29 字符蹚浑水 阅读(597) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/xingyunqiu/p/11547235.html 下拉列表操作中分为两种:select、非select 1、非select的下拉框操作 非select下拉列表操作与网页元素操作一致,找到元素,定位元素,设置等待,点击元素等等 接下来操作百 阅读全文
posted @ 2020-06-20 09:17 字符蹚浑水 阅读(566) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/yoyoketang/p/6181121.html 前言 日历控件是web网站上经常会遇到的一个场景,有些输入框是可以直接输入日期的,有些不能,以我们经常抢票的12306网站为例,详细讲解如何解决日历控件为readonly属性的问题。 基本思 阅读全文
posted @ 2020-06-19 14:26 字符蹚浑水 阅读(1511) 评论(0) 推荐(0)
摘要:https://www.runoob.com/xpath/xpath-examples.html https://selenium-python.readthedocs.io/locating-elements.html https://blog.csdn.net/weixin_43847799/a 阅读全文
posted @ 2020-01-15 17:25 字符蹚浑水 阅读(190) 评论(0) 推荐(0)
摘要:原文链接地址:https://www.cnblogs.com/Rita-LJ/p/8334526.html Python+selenium之获取文本值和下拉框选择数据 一、结合实例进行描述 1. 实例如下所示: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 阅读全文
posted @ 2020-01-15 16:57 字符蹚浑水 阅读(2512) 评论(0) 推荐(0)
摘要:若要对页面中的提示警告窗口中的滚动条进行操作,要先找到元件位置,然后在进行滚动条操作 element = driver.find_elements_by_class_name('dg-button') element.location_once_scrolled_into_view或element 阅读全文
posted @ 2020-01-15 14:50 字符蹚浑水 阅读(1664) 评论(0) 推荐(0)
摘要:原文稿:https://www.cnblogs.com/xiaoxiao-niao/p/7765627.html 每日更新的list 英文版本 https://peter.sh/experiments/chromium-command-line-switches/ 1 --allow-outdate 阅读全文
posted @ 2019-12-25 09:48 字符蹚浑水 阅读(1188) 评论(0) 推荐(0)
摘要:1、Win10 64位系统、谷歌版本79.0.3945.88、PYTHON版本3.7.5chrome_option_set = webdriver.ChromeOptions()chrome_option_set.add_experimental_option("excludeSwitches", 阅读全文
posted @ 2019-12-25 09:44 字符蹚浑水 阅读(1558) 评论(0) 推荐(0)