Create .py file
You do not have to start from scratch. The Visual Studio Code extension provides templates to help you get started.
Ctrl+Shift+P(Windows / Linux) to open the Command Palette.
Robocorp: Create Robot.
Python - Minimal.
- Choose either
Use workspace folderor
Use child folder in workspace(Check out which option works better for you)
- This is the standard python template.
- Open the Command Palette.
Robocorp: Run Robot(or navigate to the task you want to run by clicking the Robocorp icon in the Activity Bar on the left).
When run, the robot should log a greeting.
Ctrl+Click(Windows / Linux) the path to the log file in the debug console. This opens the log as a HTML file. You can install the open in browser extension and press
Alt+B(Windows / Linux) to open the HTML file in your default browser.
You can leave the log tab open in your browser and return to it whenever you want to check the log. Just remember to refresh the page to see the changes!
A good description goes a long way in communicating the purpose and the task of your robot.
- Describe your robot using docstrings for the
A well-named task summarizes the thing that the robot is supposed to complete.
You are now set with the basics. Now on to the next chapter in building the functions for your robot.