![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python+selenium:程序报错
放开那只大熊猫
热爱学习,热爱测试(づ ●─● )づ
展开
-
win10安装MySQL初始化失败(已解决)
my.ini文件配置如下:[mysqld]# 设置3306端口port=3306# 设置mysql的安装目录basedir="E:\\mysql-8.0.20-winx64"# 设置mysql数据库的数据的存放目录#datadir=E:\\mysql-8.0.20-winx64\\data (注释掉,也不要手动创建data文件夹)# 允许最大连接数max_connections=200# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统max_connect.原创 2020-05-18 00:31:50 · 8509 阅读 · 6 评论 -
Element is not clickable at point报错
应该加等待,待元素加载出来再点击操作原创 2020-02-27 16:53:12 · 338 阅读 · 0 评论 -
selenium.common.exceptions.InvalidElementStateException
selenium.common.exceptions.InvalidElementStateException: Message: invalid element state元素状态无效:原因1:元素未加载出来,添加等待原因2:元素定位不准确,定位的不可点击;应定位要可点击的那一层标签...原创 2020-01-12 14:11:38 · 7893 阅读 · 3 评论 -
常见错误2:Too broad exception clause
Too broad exception clause:捕获的异常过于宽泛了,没有针对性,可以通过指定精确的异常类型来解决原创 2018-12-02 19:03:53 · 10630 阅读 · 0 评论 -
常见报错3:解决Pycharm无法导入包的问题 Unresolved referenc
完美解决Pycharm无法导入包的问题 Unresolved reference:This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of case...原创 2018-12-06 22:57:36 · 1176 阅读 · 1 评论 -
练手2:python3+selenium+unittest
上代码: #!/usr/bin/env python# coding=utf-8class Count: def __init__(self, a, b): self.a = int(a) self.b = int(b) def add(self): return self.a + self.bimport u...原创 2018-12-07 09:37:55 · 258 阅读 · 0 评论 -
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid continuation byte
import pandas as pdimport numpy as npfrom datetime import datetime df = pd.read_csv('E:/data.csv',)# 运行后报错UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 0: invalid co...原创 2019-07-11 22:13:54 · 1052 阅读 · 0 评论