Lesson 2: Automation and Selectors

Lesson Outcomes

By the end of this lesson, learners will be able to:

  • Explain what automation selectors are
  • Describe how selectors are used in RPA tools
  • Understand how automation identifies elements on a screen
  • Explain container orchestration in automation environments
  • Identify challenges in managing automated systems

Lesson Overview

This lesson focuses on how RPA bots “see” and interact with applications.

👉 Humans use eyes and a mouse
👉 Bots use selectors

Selectors are what allow a bot to:

  • Click buttons
  • Enter data
  • Navigate systems

Without selectors:
👉 Automation cannot interact with any application.

1. What are Selectors?

Selectors are:

Tools used to target and select specific elements within a system or application.

They help the bot identify:

  • Buttons
  • Text fields
  • Links
  • Menus

2. How Selectors Work

Selectors work by identifying elements based on:

  • Element name
  • ID
  • Class
  • Structure of the interface

From your document:

  • Universal selector (*) selects everything

  • Selectors can target elements by:

    • Type

    • Class

    • ID

👉 This is similar to how web elements are selected in CSS.

3. Types of Selectors

a) Basic Selectors

  • Select elements by name or type

b) Attribute-Based Selectors

  • Use properties like ID or class

c) Hierarchical Selectors

  • Follow the structure of the application

4. Importance of Selectors in RPA

Selectors allow bots to:

  • Interact with user interfaces
  • Perform tasks automatically
  • Navigate applications accurately

👉 If selectors are incorrect:

  • Bots fail

  • Automation breaks

5. What is Container Orchestration?

From your document:

Container orchestration is the automated management of containerized applications, including deployment, scaling, and operation.

It helps manage:

  • Application deployment
  • Resource allocation
  • System scaling
  • Application health

Example Platform

  • Kubernetes (K8s)

    • Most widely used orchestration platform

    • Works across:

      • Cloud

      • On-premise systems

      • Edge environments

6. Why Container Orchestration Matters in RPA

RPA systems often:

  • Run multiple bots
  • Operate across multiple environments
  • Require scalability

👉 Orchestration ensures:

  • Bots run efficiently
  • Systems remain stable
  • Workloads are balanced

7. Real-World Example

Scenario: Automating invoice processing

  • Bot uses selectors to:

    • Open invoice

    • Extract data

    • Enter information into a system

  • Orchestration ensures:

    • Multiple bots handle multiple invoices

    • System scales with workload

8. Challenges with Selectors

  • Dynamic elements (IDs change)
  • Poor UI structure
  • Application updates
  • Incorrect selector configuration

👉 These can cause automation failures.

9. Best Practices for Using Selectors

  • Use stable attributes (avoid dynamic IDs)
  • Test selectors thoroughly
  • Use relative selectors where possible
  • Keep selectors simple and reliable

Lesson Summary

In this lesson, you learned that:

  • Selectors allow bots to interact with applications
  • They identify UI elements like buttons and fields
  • Container orchestration manages large-scale automation systems
  • Tools like Kubernetes support automation environments
  • Poor selector design can break automation