Comments (2)
Example of a script:
r.click('Start_menu.png')
r.click('Open_file.png')
How can I determine that the first line of the script has already been executed? Do I understand correctly that a screenshot of the screen is compared before the operation and after the operation? If the screenshots do not match, then there is some result after the click and you can set the result of the function to True? Do I understand the logic correctly?
from rpa-python.
Hello!
Conducted the following research on measuring the execution time of a test script:
Source data:
A qemu/kvm-based virtual machine.
AlmaLinux OS 9, office suite R7-Office
The script uses the following algorithm (turbo_mode = True):
- Open the home folder [r.click()]
- Select the Download folder [r.click()]
- Open the Excel file [r.dclick()]
- Confirm the message about the trial version office suite [r.click()]
- Open the drop-down menu in the row numbers field of the table [r.click()]
- Select "Add line" [r.click()]
- In the added line, fill in all the fields [r.keyboard() + modifier [tab]]
- Click the "Save document" icon [r.click()]
- Exit from the Office programm [r.click()]
Time measurements were performed in 3 ways:
- r.timer() after each command was executed, then the sum of the time values of all points was completed
- datetime.datetime.now(), the start time before point 1 and the finish time after point 9, then the difference between them is calculated
- Manual measurement + manual execution of all stages - stopwatch on a smartphone
The values obtained:
- sum_rtimer = 44.39
- delta_datetime = 32.64
- Stopwatch = 34.90 (human factor)
The analysis of the timer() function showed that no measurements are made inside rpa-python, but simply the contents of the file are read rpa_python.txt , which creates an external tagui component, which presumably contains the execution time of the next request (operation). Logically, it is fair to take time costs directly from the query executor. But it is unclear why the results are so big? Or does it imply other information?
from rpa-python.
Related Issues (20)
- After python is packaged as an exe, an error occurs - try using .bat .cmd or shell script HOT 1
- Using reCAPTCHA keys to bypass - those are for the actual website owner for testing HOT 5
- Text not found - r.click() with OCR text by using "Text I want to click on.png" syntax HOT 7
- Out of memory problem - Chrome browser is memory hog, can explore that angle HOT 6
- Linux环境下运行 - pending replication details (maybe can't connect to Chrome) HOT 11
- Will there be support for automation of desktop apps - already, visual automation HOT 2
- snap() captures whole page instead of element - can't replicate in Mac/Ubuntu HOT 8
- The problem with Cyrillic in r.keyboard()
- "Speeding up" the search for objects on the screen. HOT 2
- During visual automation, when Chrome pops up, it blocks the program on the desktop
- frame() does not work properly when crossing domain
- use document for context
- dom() returns empty string
- Run rpa in centos error. Setting headless_mode=True, i have no response; When i setting headless_mode=False return error
- r.init() hang on cloned virtual machine
- How to use edge web browser
- r.url("https://www.baidu.com") HOT 1
- 运行可以打开浏览器,但是浏览器显示崩溃
- The code ran successfully but the mouse did not respond
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpa-python.