Popular New Releases in Robotic Process Automation
robotframework-ExcelDataDriver
Re release for version issue
Popular Libraries in Robotic Process Automation
by bartkl python
6
Robot Framework library for working with Excel 2010 and above
by wywincl groovy
5 Apache-2.0
jenkins email templates for robot framework
by qahive python
4
ExcelDataDriver is a Excel Data-Driven Testing library for Robot Framework.
by InviteAndy python
2 Apache-2.0
Robot Framework Excel library compatible with .xslx files
by iaping php
2
Dingtalk Robot SDK for PHP(钉钉自定义机器人SDK)https://www.dingtalk.com
Trending New libraries in Robotic Process Automation
by qahive python
4
ExcelDataDriver is a Excel Data-Driven Testing library for Robot Framework.
by iaping php
2
Dingtalk Robot SDK for PHP(钉钉自定义机器人SDK)https://www.dingtalk.com
Top Authors in Robotic Process Automation
1
1 Libraries
5
2
1 Libraries
2
3
1 Libraries
4
4
1 Libraries
6
5
1 Libraries
2
1
1 Libraries
5
2
1 Libraries
2
3
1 Libraries
4
4
1 Libraries
6
5
1 Libraries
2
Trending Kits in Robotic Process Automation
No Trending Kits are available at this moment for Robotic Process Automation
Trending Discussions on Robotic Process Automation
Will I get an error if I log in to Microsoft account frequently?
Get console outputs from a script running inside VM on Pipeline
Selenium click() - selects the button but doesn't click
Failed to install Automation Anywhere Bot Agent
QUESTION
Will I get an error if I log in to Microsoft account frequently?
Asked 2021-Dec-16 at 00:38To use OneDrive API, I use token flow authentication to obtain an access token .
In general, I send a URL request using source code, then log in to Microsoft account and get an access token. Login is only requested for the first try since information are kept in browser cache .
However, when using RPA (Robotic Process Automation), the browser runs on a background process and the cache will not be kept. Therefore, it is necessary to log in to Microsoft account after sending the URL request every time. So far it seems to be ok but I am wondering that is it possible to get an error if I log in to Microsoft account too frequently in the long term?
ANSWER
Answered 2021-Dec-16 at 00:38From my research it looks like this shouldn't be an issue unless you have certain security features enabled that check for this. I wouldn't worry unless you're attempting to sign in many times within a few seconds. In the case that you do get an error it should be easily fixable since we know where it's coming from.
QUESTION
Get console outputs from a script running inside VM on Pipeline
Asked 2021-Oct-13 at 04:06I have a pipeline with the steps below:
- Create a Resource Group
- Create a Virtual Machine from an image
- Copy a Python project to VM created in the previous step
This Python project is an RPA (Robotic Process Automation). Now, I need to execute this Python project inside the VM and get the outputs from it to know what is going on, what the robot is doing. This robot read some sites and internal software.
Is there a way to execute a script inside a Virtual Machine from a Pipeline and get its console outputs? Any clue?
I saw this running on Jenkins.
ANSWER
Answered 2021-Oct-13 at 04:06If you are having Microsoft host the VM for you, there may be a way to "talk" to said VM as it is hosted on Microsoft's platform. However, the only way that I know of is to deploy an agent to the VM and select it as a resource target to run tasks on, such as copying your Python project and even running it.
Have you attempted this yet?
QUESTION
Selenium click() - selects the button but doesn't click
Asked 2021-Feb-18 at 09:47I'm using Selenium Python to do something like a Robotic Process Automation. However, I am facing problems clicking in a button... When I click the Search button manually nothing happens, but through Selenium the alert appears:
The code I'm using is:
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5
The html section of the button is:
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 970px;">
6 <legend class="hidden acc">Form Control Right Panel</legend>
7 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
8 <a href="javascript:" id="WIN_3_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="3">
9 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
10 <div class="f1" style=";width:50px">Search</div>
11 </div>
12 </a>
13 </div>
14</fieldset>
15
It's strange because I have a similar code that works on other pages, for the same button.
The html of a similar button:
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 970px;">
6 <legend class="hidden acc">Form Control Right Panel</legend>
7 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
8 <a href="javascript:" id="WIN_3_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="3">
9 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
10 <div class="f1" style=";width:50px">Search</div>
11 </div>
12 </a>
13 </div>
14</fieldset>
15<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 1654px;">
16 <legend class="hidden acc">Panel2</legend>
17 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
18 <a href="javascript:" id="WIN_2_1000005683" arid="1000005683" artype="Control" ardbn="z3Btn Function Print Preview" artcolor="#" class="btn btn3d btnd arfid1000005683 ardbnz3BtnFunctionPrintPreview" style="top:5px; left:149px; width:50px; height:21px;color:#;z-index:999;" arwindowid="2">
19 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
20 <div class="f1" style=";width:50px">Print</div>
21 </div>
22 </a>
23 <a href="javascript:" id="WIN_2_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="2">
24 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
25 <div class="f1" style=";width:50px">Search</div>
26 </div>
27 </a>
28 <a href="javascript:" id="WIN_2_303060100" arid="303060100" artype="Control" ardbn="z3Btn_NextStage" artcolor="null" class="btn btn3d arfid303060100 ardbnz3Btn_NextStage" style="top:5px; left:64px; width:82px; height:21px;z-index:998;" arwindowid="2">
29 <div class="btntextdiv" style="top:0px; left:0px; width:82px; height:21px;">
30 <div class="f7" style=";width:82px">Next Stage</div>
31 </div>
32 </a>
33 </div>
34</fieldset>
35
ANSWER
Answered 2021-Feb-17 at 21:02Generally <div>
tags are not interactable unless contenteditable="true" is set.
Some more details about the usecase would have helped us to analyze the observations in a canonical way. However to click on an element ideally you need to induce WebDriverWait for the element_to_be_clickable()
and you can use the following Locator Strategies:
Using
CSS_SELECTOR
I:
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 970px;">
6 <legend class="hidden acc">Form Control Right Panel</legend>
7 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
8 <a href="javascript:" id="WIN_3_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="3">
9 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
10 <div class="f1" style=";width:50px">Search</div>
11 </div>
12 </a>
13 </div>
14</fieldset>
15<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 1654px;">
16 <legend class="hidden acc">Panel2</legend>
17 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
18 <a href="javascript:" id="WIN_2_1000005683" arid="1000005683" artype="Control" ardbn="z3Btn Function Print Preview" artcolor="#" class="btn btn3d btnd arfid1000005683 ardbnz3BtnFunctionPrintPreview" style="top:5px; left:149px; width:50px; height:21px;color:#;z-index:999;" arwindowid="2">
19 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
20 <div class="f1" style=";width:50px">Print</div>
21 </div>
22 </a>
23 <a href="javascript:" id="WIN_2_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="2">
24 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
25 <div class="f1" style=";width:50px">Search</div>
26 </div>
27 </a>
28 <a href="javascript:" id="WIN_2_303060100" arid="303060100" artype="Control" ardbn="z3Btn_NextStage" artcolor="null" class="btn btn3d arfid303060100 ardbnz3Btn_NextStage" style="top:5px; left:64px; width:82px; height:21px;z-index:998;" arwindowid="2">
29 <div class="btntextdiv" style="top:0px; left:0px; width:82px; height:21px;">
30 <div class="f7" style=";width:82px">Next Stage</div>
31 </div>
32 </a>
33 </div>
34</fieldset>
35WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a#WIN_3_1002 > div.btntextdiv > div.f1"))).click()
36
Using CSS_SELECTOR
II:
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 970px;">
6 <legend class="hidden acc">Form Control Right Panel</legend>
7 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
8 <a href="javascript:" id="WIN_3_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="3">
9 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
10 <div class="f1" style=";width:50px">Search</div>
11 </div>
12 </a>
13 </div>
14</fieldset>
15<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 1654px;">
16 <legend class="hidden acc">Panel2</legend>
17 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
18 <a href="javascript:" id="WIN_2_1000005683" arid="1000005683" artype="Control" ardbn="z3Btn Function Print Preview" artcolor="#" class="btn btn3d btnd arfid1000005683 ardbnz3BtnFunctionPrintPreview" style="top:5px; left:149px; width:50px; height:21px;color:#;z-index:999;" arwindowid="2">
19 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
20 <div class="f1" style=";width:50px">Print</div>
21 </div>
22 </a>
23 <a href="javascript:" id="WIN_2_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="2">
24 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
25 <div class="f1" style=";width:50px">Search</div>
26 </div>
27 </a>
28 <a href="javascript:" id="WIN_2_303060100" arid="303060100" artype="Control" ardbn="z3Btn_NextStage" artcolor="null" class="btn btn3d arfid303060100 ardbnz3Btn_NextStage" style="top:5px; left:64px; width:82px; height:21px;z-index:998;" arwindowid="2">
29 <div class="btntextdiv" style="top:0px; left:0px; width:82px; height:21px;">
30 <div class="f7" style=";width:82px">Next Stage</div>
31 </div>
32 </a>
33 </div>
34</fieldset>
35WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a#WIN_3_1002 > div.btntextdiv > div.f1"))).click()
36WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a.btn.btn3d.ardbnQuery[artype='Control'][ardbn='Query']"))).click()
37
Note: You have to add the following imports :
1try:
2 driver.find_element(By.CSS_SELECTOR, '#WIN_3_1002 > div:nth-child(1)').click()
3except Exception as e:
4 print(e)
5<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 970px;">
6 <legend class="hidden acc">Form Control Right Panel</legend>
7 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
8 <a href="javascript:" id="WIN_3_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="3">
9 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
10 <div class="f1" style=";width:50px">Search</div>
11 </div>
12 </a>
13 </div>
14</fieldset>
15<fieldset class="PageBodyHorizontal" arbwidth="0" arbw="0,0,0,0" aropacity="1.0" arcolor="c0c0c0" arbcolor="#c0c0c0" style="width: 1654px;">
16 <legend class="hidden acc">Panel2</legend>
17 <div class="PageBody pbChrome" style="border-radius: 0px 0px 0px 0px ;-moz-border-radius: 0px 0px 0px 0px ;-webkit-border-radius: 0px 0px 0px 0px ;background: -moz-linear-gradient(top, rgba(192,192,192,1.0), rgba(192,192,192,1.0));background: -webkit-gradient(linear, center center, center center, from(rgba(192,192,192,1.0)),to(rgba(192,192,192,1.0)));background: linear-gradient(rgba(192,192,192,1.0), rgba(192,192,192,1.0));background-color:#c0c0c0;">
18 <a href="javascript:" id="WIN_2_1000005683" arid="1000005683" artype="Control" ardbn="z3Btn Function Print Preview" artcolor="#" class="btn btn3d btnd arfid1000005683 ardbnz3BtnFunctionPrintPreview" style="top:5px; left:149px; width:50px; height:21px;color:#;z-index:999;" arwindowid="2">
19 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
20 <div class="f1" style=";width:50px">Print</div>
21 </div>
22 </a>
23 <a href="javascript:" id="WIN_2_1002" arid="1002" artype="Control" ardbn="Query" artcolor="null" class="btn btn3d arfid1002 ardbnQuery" style="top: 5px; left: 10px; width: 50px; height: 21px; visibility: inherit; z-index: 997;" arwindowid="2">
24 <div class="btntextdiv" style="top:0px; left:0px; width:50px; height:21px;">
25 <div class="f1" style=";width:50px">Search</div>
26 </div>
27 </a>
28 <a href="javascript:" id="WIN_2_303060100" arid="303060100" artype="Control" ardbn="z3Btn_NextStage" artcolor="null" class="btn btn3d arfid303060100 ardbnz3Btn_NextStage" style="top:5px; left:64px; width:82px; height:21px;z-index:998;" arwindowid="2">
29 <div class="btntextdiv" style="top:0px; left:0px; width:82px; height:21px;">
30 <div class="f7" style=";width:82px">Next Stage</div>
31 </div>
32 </a>
33 </div>
34</fieldset>
35WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a#WIN_3_1002 > div.btntextdiv > div.f1"))).click()
36WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a.btn.btn3d.ardbnQuery[artype='Control'][ardbn='Query']"))).click()
37from selenium.webdriver.support.ui import WebDriverWait
38from selenium.webdriver.common.by import By
39from selenium.webdriver.support import expected_conditions as EC
40
QUESTION
Failed to install Automation Anywhere Bot Agent
Asked 2020-Jul-16 at 04:25I am new to Robotic Process Automation (RPA) and I have just started learning Automation Anywhere tool. When I tried to install the Bot Agent I got this error: "Automation Anywhere Bot Agent service install configuration fail to register and return error (5).".
Does anyone know how to fix this issue or how to investigate the root cause of it on Windows 10?
ANSWER
Answered 2020-Jul-16 at 04:25Same error face to me. This works for me well. Try this.
-> The Bot agent was installed initially and then uninstalled. Uninstalling the Registered Device did not happen correctly and even after removing all the related AA folders from all possible paths from the system, the above error occurred while trying to install the Bot Agent.
-> Solution :
i).I figured out that the Automation Anywhere Bot Agent was listed in “Services” app of windows and the corresponding “path to execute” was stamped was wrong. Hence whenever I tried to re-install it, the above error occurred.
ii). Deleted the Automation Anywhere Bot Agent from the “Regedit.exe” (Registry Editor)
iii). Since it was an automatic task in “Services” app of windows, it got removed from Registry Editor but was still listed in Services app with a description of “error (2)”
iv).Opened cmd prompt as Administrator -> navigated to C:\Windows\system32\
v). Executed: sc delete “Automation Anywhere Bot Agent”
( sc delete "service name which you want to delete" )
vi).Restarted the system and verified on Services app. The Agent was no longer listed.
vii).Re-installed the Agent.
Community Discussions contain sources that include Stack Exchange Network
Tutorials and Learning Resources in Robotic Process Automation
Tutorials and Learning Resources are not available at this moment for Robotic Process Automation