- 博客(2)
- 收藏
- 关注
原创 selenium--Actionchains--处理鼠标键盘类事件
**Actionchains**ActionChains是selenium给我们提供了一个类来处理鼠标键盘类事件,比如单击、双击、点击鼠标右键、拖拽等等事件导入python文件中from selenium.webdriver.common.action_chains import ActionChains基本方法的调用ActionChains (driver).drag_and_drop_by_offset(元素).perform()driver驱动drag_and_dropby_of
2021-05-08 00:44:34 239
原创 python+自动化测试报错问题—— xxx takes 1 positional argument but 2 were given
python+自动化测试报错问题—— xxx takes 1 positional argument but 2 were given有2种可能1.没有添加self(python)2.yaml文件缩进不对(自动化测试-框架)有2种可能1.没有添加self(python)出现这个问题的原因是,函数在定义的时候少了self,如果写成def get_html(url),这时候就会报错 get_html() takes 1 positional argument but 2 were given改成:de
2021-05-08 00:33:46 845 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人