摘要:
upload.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h1>hello worlds</h1> <form action="/kl 阅读全文
摘要:
times ${time} = Get Time year-month-day NOW ${yyyy} ${mm} ${dd} = Get Time year,month,day ${now}= Evaluate ''.join("${yyyy}-${mm}-${dd}") ${now} set v 阅读全文
摘要:
*** Keywords *** get cells text [Arguments] ${rowIndex} ${cells} ${row_list}= Create List FOR ${cellindex} IN RANGE 1 ${cells} ${curText}= Get Text // 阅读全文
摘要:
出现元素不在可视区域:0、元素不可见1、元素被遮挡 1、其他的弹框遮挡 2、因滚动条滚动而不在可视区域内 3、......等 本次主要针对1-2的情况: 1、获取元素的位置 2、获取网页水平导航条的位置 3、垂直滚动条滚动距离=元素.pos-y - 水平导航条.pos.y 4、将滚动条置顶 5、判断 阅读全文
摘要:
Element Should Be In View [Arguments] ${element} ${js}= Set Variable function(element){var bounding=element.getBoundingClientRect();return(bounding.to 阅读全文
摘要:
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains # 导入鼠标操作的ActionChain 阅读全文
摘要:
设置文件下载路径为浏览器的默认下载路径 *** Test Cases *** window/linux Specifying a Known Mobile Device ${mobile emulation}= Create Dictionary deviceName=Google Nexus 5 阅读全文
摘要:
通过获取Selenium2Library的实例来获取driver from robot.libraries.BuiltIn import BuiltIn def get_webdriver_instance(): seleniumlib = BuiltIn().get_library_instanc 阅读全文
摘要:
def get_chrome_options(): options = GoogleOptions() experimentalFlags = ['same-site-by-default-cookies@2', 'cookies-without-same-site-must-be-secure@2 阅读全文