2023年11月23日

selenium-linux平台上操作系统弹框

摘要: 1 打开系统弹框后,输入文件路径,按下press键盘 代码如下: pyautogui.typewrite(path) #path是自己的文件路径 time.sleep(2) pyautogui.press("enter") time.sleep(1) 阅读全文

posted @ 2023-11-23 11:17 bbzhang 阅读(33) 评论(0) 推荐(0) 编辑

2023年11月20日

centos7上安装tkinter

摘要: 报错:You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-dev 1 # yum install -y tk tk-devel tcl tcl-deve 阅读全文

posted @ 2023-11-20 16:50 bbzhang 阅读(466) 评论(0) 推荐(0) 编辑

2023年9月13日

python selenium处理浏览器弹框:始终允许某个网站

摘要: # 创建 ChromeOptions 对象并添加启动参数 options = webdriver.ChromeOptions() options.add_argument('--allow-running-insecure-content') options.add_argument('--allo 阅读全文

posted @ 2023-09-13 16:34 bbzhang 阅读(153) 评论(0) 推荐(0) 编辑

2023年5月10日

python处理不同操作系统的系统弹框(自动化)

摘要: 代码中的path需按照实际情况填写 #文件上传弹框 sys = platform.system() if sys == "Windows": time1 = time.strftime('%m%d%H%M%S', time.localtime()) startTime = datetime.now( 阅读全文

posted @ 2023-05-10 16:33 bbzhang 阅读(184) 评论(0) 推荐(0) 编辑

2022年9月29日

后台启动bat程序,使得jenkins可以启动浏览器(如果将bat文件设置为系统服务,启动浏览器失败)

摘要: test.bat文件中写入 @echo off if "%1"=="h" goto begin start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin jav 阅读全文

posted @ 2022-09-29 17:47 bbzhang 阅读(87) 评论(0) 推荐(0) 编辑

2022年7月19日

win10安装sonarqube9.5

摘要: 一:下载安装包 1 下载sonarqube https://www.sonarqube.org/downloads/ 2 9.5不支持mysql,需要安装postgresql 11以上,我安装的是postgresql12.11 下载地址 https://www.enterprisedb.com/do 阅读全文

posted @ 2022-07-19 15:12 bbzhang 阅读(910) 评论(1) 推荐(2) 编辑

2022年7月18日

python(pywin32)指定路径保存文件到另存为框

摘要: import os import time import win32gui import win32con from datetime import datetime mode_db_path="要保存文件的路径" time1 = time.strftime('%m%d%H%M%S', time.l 阅读全文

posted @ 2022-07-18 14:38 bbzhang 阅读(1131) 评论(0) 推荐(0) 编辑

2022年7月14日

selenium+python启动electron应用

摘要: 1 安装selenium webdriver,找到对应的chrome驱动版本 2 应用 options = webdriver.ChromeOptions() options.binary_location = “electron应用的位置” _driver = webdriver.Chrome(s 阅读全文

posted @ 2022-07-14 16:33 bbzhang 阅读(607) 评论(0) 推荐(0) 编辑

git lab提交code注意事项

摘要: 1 安装完git后,需要使用 ssh-keygen -t rsa -C "邮箱",在本地生成公钥,将x.pub里边的内容拷贝到gitlab上 2 git config --global user.name "name" git config --global user.email "email" g 阅读全文

posted @ 2022-07-14 16:18 bbzhang 阅读(59) 评论(0) 推荐(0) 编辑

2020年3月24日

jwt实现过程

摘要: JWT(json web token) 与传统的token相比,jwt无需在服务端保存token 流程图: __jwt实现过程__ : jwt生成的token由3部分组成,每一部分用.进行连接 __1 header__ { “alg”: “HS256” “typ”: “JWT” } 对此json进行 阅读全文

posted @ 2020-03-24 15:14 bbzhang 阅读(213) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示