Skip to content

Commit

Permalink
简化上传文件演示
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed Jun 16, 2024
1 parent 5f6b620 commit 7321cd9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions 上传(发送)文件演示.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,22 @@
const pbottleRPA = require('./pbottleRPA')


let resolutionInfo = pbottleRPA.getResolution()
console.log('上传发送文件演示',resolutionInfo)

// pbottleRPA.utils

//语音播报
pbottleRPA.tts('上传发送文件演示')
pbottleRPA.showMsg('本演示需要浏览器增强插件','上传发送文件演示')
pbottleRPA.sleep(2000)


console.log('开始演示');
pbottleRPA.openURL('https://image.baidu.com/')
pbottleRPA.sleep(1000)
pbottleRPA.browserCMD_click('span.img-upload-icon_y6ZWd')
let pos = pbottleRPA.findText('上传图片')
pbottleRPA.moveAndClick(pos.x,pos.y)
pbottleRPA.sleep(1000)
pbottleRPA.copyFile(__dirname + '/input/RPAlogo128.png')
pbottleRPA.moveAndClick(resolutionInfo.w/2,resolutionInfo.h/2)
pbottleRPA.keyTap('shift+tab')
pbottleRPA.keyTap('ctrl+v')
pbottleRPA.sleep(1000)
pbottleRPA.keyTap('enter')
Expand Down

0 comments on commit 7321cd9

Please sign in to comment.