When developing automations with the BotCity Windows Inspector, following certain best practices can significantly improve your experience and results. Below are key recommendations and important points to consider during development.
To prevent losing element references when the application context changes, it is recommended to:
Map small sets of elements.
Generate the corresponding code before closing the application or proceeding to the next step of the process.
Additionally, ensure that:
The connection to the application is established correctly (remember to select the appropriate Backend Technology for your application).
Elements are properly detected during execution.
By validating each part progressively, you help ensure that all actions behave as expected throughout the full automation process.
Sometimes, an element can be interacted with in multiple ways.
For example:
Clicking a button may be possible with the click()
method.
Alternatively, performing a keyboard shortcut using type_keys()
might also trigger the desired action.
If you experience difficulties using a specific interaction method, try other available options and verify which one best suits your context.
By following these best practices, you can significantly increase the stability and reliability of your desktop automation projects using the BotCity Windows Inspector.
If you have any questions or want to dive deeper into this subject, feel free to explore the BotCity Community Channels !