09 2021 档案
文件上传- Click Element :InvalidArgumentException: Message: invalid argument
摘要:upload.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h1>hello worlds</h1> <form action="/kl 阅读全文
posted @ 2021-09-16 16:34 Old-Kang 阅读(222) 评论(0) 推荐(0) 编辑
时间相关
摘要:times time=GetTimeyearmonthdayNOW{yyyy} mm{dd} = Get Time year,month,day now=Evaluate.join("{yyyy}-mm{dd}") ${now} set v 阅读全文
posted @ 2021-09-16 16:21 Old-Kang 阅读(12) 评论(0) 推荐(0) 编辑
表格操作-表格每行内容(不含表头)
摘要:*** Keywords *** get cells text [Arguments] rowIndex{cells} rowlist=CreateListFOR{cellindex} IN RANGE 1 cells{curText}= Get Text // 阅读全文
posted @ 2021-09-16 15:24 Old-Kang 阅读(125) 评论(0) 推荐(0) 编辑
元素拖到到可视区域
摘要:出现元素不在可视区域:0、元素不可见1、元素被遮挡 1、其他的弹框遮挡 2、因滚动条滚动而不在可视区域内 3、......等 本次主要针对1-2的情况: 1、获取元素的位置 2、获取网页水平导航条的位置 3、垂直滚动条滚动距离=元素.pos-y - 水平导航条.pos.y 4、将滚动条置顶 5、判断 阅读全文
posted @ 2021-09-16 15:12 Old-Kang 阅读(35) 评论(0) 推荐(0) 编辑
判断元素是否在可视区域
摘要:Element Should Be In View [Arguments] element{js}= Set Variable function(element){var bounding=element.getBoundingClientRect();return(bounding.to 阅读全文
posted @ 2021-09-16 14:53 Old-Kang 阅读(50) 评论(0) 推荐(0) 编辑
自定义关键字
摘要:from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains # 导入鼠标操作的ActionChain 阅读全文
posted @ 2021-09-16 13:47 Old-Kang 阅读(60) 评论(0) 推荐(0) 编辑
Google Chorme 设置文件下载路径
摘要:设置文件下载路径为浏览器的默认下载路径 *** Test Cases *** window/linux Specifying a Known Mobile Device ${mobile emulation}= Create Dictionary deviceName=Google Nexus 5 阅读全文
posted @ 2021-09-16 11:50 Old-Kang 阅读(180) 评论(0) 推荐(0) 编辑
获取Selenium2Library-driver
摘要:通过获取Selenium2Library的实例来获取driver from robot.libraries.BuiltIn import BuiltIn def get_webdriver_instance(): seleniumlib = BuiltIn().get_library_instanc 阅读全文
posted @ 2021-09-16 10:09 Old-Kang 阅读(40) 评论(0) 推荐(0) 编辑
Google Chrome/ FireFox Options
摘要:def get_chrome_options(): options = GoogleOptions() experimentalFlags = ['same-site-by-default-cookies@2', 'cookies-without-same-site-must-be-secure@2 阅读全文
posted @ 2021-09-16 10:07 Old-Kang 阅读(303) 评论(0) 推荐(0) 编辑
python request下载文件时,显示进度以及网速
摘要:python request下载文件时,显示进度以及网速 转载于-互联网兄弟(非原创) python request下载文件时,显示进度以及网速 import requests import time def downloadFile(name, url): headers = {'Proxy-Co 阅读全文
posted @ 2021-09-15 10:17 Old-Kang 阅读(580) 评论(0) 推荐(0) 编辑
文件上传-Autolt 无法支持Headless
摘要:缺点:无法支持Headless模式 文件上传 *** Settings *** Library AutoItLibrary *** Keywords *** 文件上传 cur=setvariable{CURDIR} out=setvariable{OUTPUTDIR} # 阅读全文
posted @ 2021-09-13 18:09 Old-Kang 阅读(44) 评论(0) 推荐(0) 编辑
获取项目路径
摘要:获取项目路径 def reversePath(abspath, iter): if isinstance(iter ,str): iter = int(iter) if iter is None or iter == 0: return abspath else: path = abspath # 阅读全文
posted @ 2021-09-13 17:52 Old-Kang 阅读(39) 评论(0) 推荐(0) 编辑
获取Select下拉框的value-text
摘要:html结构: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <select id="identifyType_Personal" data-url="codeInput/ini 阅读全文
posted @ 2021-09-10 10:52 Old-Kang 阅读(84) 评论(0) 推荐(0) 编辑




点击右上角即可分享
微信分享提示