
UI自动化
一只默默奉献的小白
这个作者很懒,什么都没留下…
展开
-
UI自动化+python鼠标事件
首先先用python打开网站import osfrom selenium import webdriverfrom selenium.webdriver。chrom。service import Servicefrom selenium.webdriver.common.by import Byfrom sleenium.webdriver.common.action_chains import ActionChains chrome_path='webdriver原创 2022-05-13 20:35:07 · 605 阅读 · 0 评论 -
UI自动化+python元素识别
Web网页自动化中的元素定位:为了在指定的元素上进行操作如何才能那个进入元素定位:1.了解元素的信息,网页中查看元素的信息1)利用谷歌开发者工具--谷歌--右上角菜单--更多工具---开发者工具右击定位元素--检查按钮火狐开发者工具第二个步骤:利用selenium中的元素定位api,去识别操作元素开发者工具打开步骤:谷歌浏览器-右上角三个点--更多工具-- 开发者工具--找到定位工具初级定位方法:driver.find_element(By.NAME,'wd.原创 2022-05-13 20:14:10 · 858 阅读 · 0 评论 -
UI自动化获取api操作+简单操作
#代码import.timefrom selenium import webdriverfrom selenium.webdriver.chrome.service import Servicechrome_path='webdriver/chromedriver.exe'driver_service=Service(chrome_path)driver=webdriver.Chrome(service=driver_service)driver.get('https://w原创 2022-05-13 19:57:16 · 483 阅读 · 0 评论 -
python+UI自动化配置环境
#1.找谷歌版本2.下载chromedriver3.dos指令找python安装目录(where python)4.把刚下载的chromdriver.exe放到python安装目录(放在python根目录即可)5.安装selenium模块在Terminal板块输入代码pip install selenium6.重启python,就能使用selenium模块如果按上面步骤操作可以尝试下面代码打开浏览器:#导包from slenium import webdri...原创 2022-05-13 19:52:03 · 431 阅读 · 0 评论