上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页
摘要: 1、报元素找不到的原因可能是? 1、元素表达式不正确2、没有正确设置等待3、元素不在该页面 iframe 确定元素是否在iframe上 window 是否在新窗口上 是否有弹出原生alert 4、元素找到了,但是不可以点击--element not interactable一般用js发送解决 2、键 阅读全文
posted @ 2022-03-21 18:41 依羽杉 阅读(301) 评论(0) 推荐(0)
摘要: 1、窗口切换-driver.switch_to.window(driver.window_handles[-1])-获取当前所有窗口,切换到最新的窗口索引-1 import time from selenium import webdriver from selenium.webdriver.com 阅读全文
posted @ 2022-03-21 00:28 依羽杉 阅读(136) 评论(0) 推荐(0)
摘要: 1、为什么用相对路径 相对路径简洁些,一般就一两个层级, 兼容性好些,绝对路径改个层级,路径就得改,相对路径除非改定位用的路径参数,否则不需要修改 什么样XPATH表达式是好的XPATH表达式, - 长短比较, 短的,或者精简的表达式,就相对好的表达式- 表示找到了最明显的特性,( id, name 阅读全文
posted @ 2022-03-20 20:43 依羽杉 阅读(261) 评论(0) 推荐(0)
摘要: 1、html标签和属性的常用组合 学习链接:https://www.runoob.com/html/html-tutorial.html 简单了解:了解HTML,方便定位元素 1、title --head里的title就是网页标题 2、body-body里的就是页面显示的 3、img 4、a 5、i 阅读全文
posted @ 2022-03-20 17:00 依羽杉 阅读(107) 评论(0) 推荐(0)
摘要: web自动化环境安装 1、浏览器 chrome 2、浏览器驱动-chromedriver.exe 中国镜像站:https://npmmirror.com/ 下 https://npmmirror.com/mirrors/chromedriver/ 下载浏览器对应版本的驱动 可以放在项目下面,一般把驱 阅读全文
posted @ 2022-03-20 00:27 依羽杉 阅读(241) 评论(0) 推荐(0)
摘要: 1、窗口滚动条控制 js代码 window.scrollTo(0,1000) window.scrollTo(0, document.body.scrollHeight) import time from selenium import webdriver from selenium.webdriv 阅读全文
posted @ 2022-03-18 20:34 依羽杉 阅读(278) 评论(0) 推荐(0)
摘要: import os from datetime import datetime os.path.dirname(__file__) print(os.path.abspath(__file__)) print(os.path.dirname(os.path.abspath(__file__))) p 阅读全文
posted @ 2022-03-11 14:11 依羽杉 阅读(131) 评论(0) 推荐(0)
摘要: 1、在有网的环境下安装好包 比如说pyautogui,一定得python版本相同 >pip install pyautogui 可以看出依赖的包其实挺多的 安装前执行下 pip freeze >requirements_before.txt 2.打包已安装的包 若已配置好环境变量 >pip free 阅读全文
posted @ 2022-03-11 11:46 依羽杉 阅读(470) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/zyxwvuuvwxyz/article/details/108831962 Filebeat是用于转发和集中日志数据的轻量级传送程序。作为服务器上的代理安装,Filebeat监视您指定的日志文件或位置,收集日志事件,并将它们转发到Elasticsearc 阅读全文
posted @ 2022-02-23 16:23 依羽杉 阅读(186) 评论(0) 推荐(0)
摘要: 为何需要容器 软件布署的痛 相信所有开发者都有过因系统环境差异被软件布署折磨的苦不堪言的经历,好不容易开发完成,并且在自家机器跑通了,但拿到客户或者生产环境一运行, 一首凉凉铺天盖地地响起,漫山遍野的草泥马路过。 要想你开发的应用换一个地方能run起来,就必须保证操作系统的设置、各种依赖程序的安装以 阅读全文
posted @ 2022-02-23 16:21 依羽杉 阅读(115) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页