AppRobotic With AWS Glue Samples
Learn to leverage AWS Glue with AppRobotic by using and tweaking code samples: Get Code
Learn to leverage AWS Glue with AppRobotic by using and tweaking code samples: Get Code
Automate apps with AppRobotic, AWS DeepLens and Rekognition by adapting code samples: Get Code
Learn to leverage AWS CloudFormation templates to launch pre-defined resources with AppRobotic by using and tweaking code samples: Get Code
Utilize AWS SageMaker with Optuna and AppRobotic for HPO: Get Code
Learn to leverage AWS Data Pipeline templates with AppRobotic by using and tweaking code samples: Get Code
Learn to leverage AWS IoT with AppRobotic by using and tweaking code samples: Get Code
Learn to leverage Amazon Comprehend, Amazon Elasticsearch with Kibana, Amazon S3, Amazon Cognito to search over many documents with AppRobotic by using and tweaking code samples: Get Code
Learn to automate the process of running the GuardDuty multi-account workflow across a group of accounts with AppRobotic by using and tweaking code samples: Get Code
Learn to automate the process of running applications on AWS Fargate with AppRobotic by using and tweaking code samples: Get Code
Sometimes, when automating a webpage with Selenium, a script on the page or another reason prevents the webpage from loading in a timely fashion, preventing Selenium from accessing its elements such as buttons that we’d like to interact with. In the code sample below, we solve this problem by replicating user interaction with the webpage…
Read more
Quick Overview in 5 Steps Subscribe to AppRobotic on the AWS Marketplace (https://aws.amazon.com/marketplace/pp/B00WZTUCPW) page. Launch an AppRobotic EC2 Instance via 1-Click Launch or EC2 Console. We recommend limiting allowed inbound IP addresses for RDP ports to your organization’s IP range by creating a custom security group and selecting it on the Firewall Settings page. Once…
Read more
Q: I wrote some RPA automation incorporating Selenium WebDriver. It visits various internal company webpages and checks for updated resources, such as white papers and forum posts. It refreshes every 5 minutes, and sends an alert email if a new resource is found. How can I run this RPA script 24/7 somewhere other than on…
Read more
The Type() method in AppRobotic can be used to send keyboard strokes to the active element on the screen. Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) x.Type(“This is a test.”) x.Type(“{TAB}”) x.Type(“This is another test.”) x.Type(“{ENTER}”)
How to read Excel file, loop through rows, and perform certain AppRobotic Action steps for each row in Python? Let’s say that we have 2 URLs in an Excel sheet (Sheet1). Cell A1 has a URL such as google.com and cell A2 also has a URL such as google.com. Below, we open a web browser,…
Read more
AppRobotic can be used to create a simple macro to perform any action in a web browser. The code example below leverages Python to open a web browser window, and perform a simple search on Google. Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) # specify URL url = “https://www.google.com” # open with Edge browser x.OpenURLEdge(url)…
Read more
To check whether an element was found on the page prior to trying to click it, we can read its length with the len() method. If it’s greater than 0, we proceed to click it. Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) from selenium import webdriver # navigate to Yahoo driver = webdriver.Firefox() driver.get(‘https://www.yahoo.com’) #…
Read more
If you’re seeing a ImportError: No module named win32com.client error while using the Python language with AppRobotic, it means that this module has somehow broken during an update process. Open a Command Prompt, change the directory to the 32-bit Python install directory, such as: cd “C:\Program Files (x86)\Python39-32” and run the following command: python -m…
Read more
Selenium provides the ‘move_to_element’ method that will scroll to the element in the DOM, and place the mouse on the element, which subsequently makes it easy to click: Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains # navigate to Instagram driver = webdriver.Firefox() driver.get(‘https://www.instagram.com’) # sleep 1 second…
Read more
To launch Chrome with Selenium WebDriver, ensure that the path to your ChromeDriver binary download is listed in the Windows PATH environment variable. Alternatively, you can specify the path to ChromeDriver directly during runtime per the example below: Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) import os from selenium import webdriver # assign ChromeDriver path…
Read more
To download all images from a given website, we can iterate through all ‘img’ elements, and leverage the ‘urlretrieve’ method to save them to our computer. Sample code below: Python Code: import win32com.client x = win32com.client.Dispatch(“AppRobotic.API”) from selenium import webdriver import urllib.request # navigate to Instagram driver = webdriver.Firefox() driver.get(‘https://www.instagram.com’) # sleep 1 second x.Wait(1000)…
Read more