当前位置:网站首页>[webdriver] upload files using AutoIT
[webdriver] upload files using AutoIT
2022-06-29 17:40:00 【bobob_】
One 、AutoIt be used for Windows GUI( Graphical interface ) Automatic operation in the system .
Official website :https://www.autoitscript.com/site/
Edit the windows Script
Click capture element
Element found
Through the two figures above AutoIt Windows Info in Control page Get the following information .
Window title by “ Upload files ”, The title of Class by “#32770”.
Of the file name input box class by “Edit”,Instance by “1” ,ClassnameNN by “Edit1”.
Turn on the button class by “Button”,Instance by “1” ,ClassnameNN by “Button1”.
3、 open SciTE Script Editor Editor , Write a script .
SciTE Script Editor The editor is as follows :
ControlFocus(" open ", "", "Edit1")
WinWait("[CLASS:#32770]","",3)
ControlSetText(" open ","","Edit1","C:\DuBo\Desktop\TestData3.pdf")
Sleep(2000) ; wait for 2 Second
ControlClick(" open ","","Button1")
4、 Save the script as uploadFile.au3, And then keep uploadFile.html The upload file window of is open , Then pass Run Script Tools will uploadFile.au3 Turn on run
5. Call... Through an automated test script upfile.exe Program upload
public class UploadFile {
public static void main(String[] args) {
.........
try {
String str = "E://uploadFile.exe";
rn.exec(str);
} catch (Exception e) {
System.out.println("Error to run the exe");
}
}
}
边栏推荐
- The fixed assets management system enables enterprises to dynamically master assets
- 跨境独立站语言unicode转希伯来语
- 正则表达式
- What is a SCM system? What are the advantages of a supply chain management system?
- Sword finger offer 13 Robot range of motion (BFS)
- Multi mode concurrent implementation of tortoise and rabbit race in go language
- Automatic vending machine
- Sectigo ov pan domain name certificate is 1590 yuan a year easy to use
- DevCloud加持下的青软,让教育“智”上云端
- Bottom level internal skill cultivation
猜你喜欢
人脸识别4-百度商用方案调研
Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native
Viewing splitchunks code segmentation from MPX resource construction optimization
Yurun multidimensional makes efforts in the charity field and bravely resists the corporate public welfare banner
迈动互联中标大家保险集团
mysql. What is the concept of sock
底层内功修养
0 basic self-study STM32 (wildfire) -- use register to light LED -- Explanation of GPIO function block diagram
Does MySQL support foreign keys
Mysql中锁的使用场景是什么
随机推荐
关于KALI使用xshell连接
R语言epiDisplay包的aggregate函数将数值变量基于因子变量拆分为不同的子集,计算每个子集的汇总统计信息、aggregate.data.frame函数包含缺失值的情况下分组统计结果为NA
腾讯云发布自动化交付和运维产品Orbit,推动企业应用全面云原生化
关于Go中两个模块互相调用的场景解决方案
Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native
mysql支持外键吗
3h精通OpenCV(九)-最简单的人脸检测
固定资产管理系统让企业动态掌握资产情况
Epoll analysis
SCM系统是什么?供应链管理系统有哪些优势?
R语言ggplot2可视化:使用patchwork包(直接使用加号+)将一个ggplot2可视化结果和一个plot函数可视化结果横向组合起来形成最终结果图
Custom handlerinterceptor interceptor for user authentication
Kali installation tutorial 2020
Viewing splitchunks code segmentation from MPX resource construction optimization
Online sql to CSV tool
基于STM32F103ZET6库函数定时器中断实验
0 basic self-study STM32 (wildfire) - register lit LED
The aggregate function in the epidisplay package of R language divides numerical variables into different subsets based on factor variables, and calculates the summary statistics and aggregate data. W
育润多维发力慈善领域,勇抗企业公益大旗
What is the SRM system? How do I apply the SRM system?