---
title: "Action Selenium Step"
url: "https://docs.robotiq.ai/en/article/action-selenium-step"
language: "en"
last_updated: "2025-12-24T15:25:40.945Z"
---

# Action Selenium Step

The Action Selenium Step lets you interact with things on a web page. You can use it to move your mouse over an item or to move your mouse over it and then click it. This step helps you automate tasks in a web browser.

## What You'll Need

-   A Selenium driver that's set up.
-   An open web browser.

## How to Use the Action Selenium Step

Use this step to hover or hover and click on web elements.

### Step 1: Add the Action Selenium Step

1.  Drag the **Action Selenium Step** into your process.
2.  Give the step a clear name in the **Step Name** field (this is optional).

### Step 2: Set Up the Action

1.  In the **Action Type** menu, pick one of these:
    -   **Hover**: The robot moves the mouse over the web element you picked.
    -   **Hover and Click**: The robot moves the mouse over the element and then clicks it.

### Step 3: Pick the Target Element

1.  In the **Selector Type** menu, choose how you want to find the web element. Your choices are:
    -   Class Name
    -   CSS Selector
    -   Name
    -   Id
    -   Link Text
    -   Partial Link Text
    -   Tag Name
    -   XPath
2.  In the **Selector Value** field, type in the value for the selector type you chose. This can be a variable or a direct value.
    -   **Example**: If you pick `Id` as the selector type, type in the element's ID (like `loginButton`).

### Step 4: Set How Long to Wait

1.  In the **Wait for Element until timeout \[ms\]** field, type the longest time (in milliseconds) the robot should wait for the element to show up. This can be a variable or a direct value.

### Step 5: Choose Driver and Output

1.  In the **Driver Reference** field, give the variable that holds your Selenium driver.
2.  In the **Element present** field, pick a true/false variable. This variable will be `True` if the element is found, or `False` if it isn't.

## Parameters Explained

**Step Name** (Optional)

-   A custom name for this step in your process.
-   **When to use it**: To make your workflow easier to understand.

**Action Type** (Required)

-   Says what the robot should do with the web element.
-   **Options**: `Hover`, `Hover and Click`
-   **When to use it**: To choose between just hovering or hovering and clicking.

**Selector Type** (Required)

-   How you find the web element you want.
-   **Options**: `Class Name`, `CSS Selector`, `Name`, `Id`, `Link Text`, `Partial Link Text`, `Tag Name`, `XPath`
-   **When to use it**: To tell the robot how to find the specific element on the page.

**Selector Value** (Required)

-   The actual value of the selector you picked.
-   **Example**: If `Selector Type` is `Id`, this would be `myElementId`.
-   **When to use it**: To give the unique name for the element.

**Wait for Element until timeout \[ms\]** (Required)

-   The most time (in milliseconds) to wait for the element to be ready.
-   **Example**: `5000` (waits for 5 seconds).
-   **When to use it**: To stop errors if things on the page load slowly.

**Driver Reference** (Required)

-   The variable holding the active Selenium web driver.
-   **When to use it**: To connect this step to your open browser.

**Element present** (Required)

-   A true/false variable that shows if the element was found.
-   **When to use it**: To check if the action worked or to handle problems.

**Throw exception** (Required)

-   Decides if the process stops with an error if the element isn't found.
-   **Options**: `T` (True - stop with error), `F` (False - don't stop with error, this is the default)
-   **When to use it**: To control how your process reacts when elements are missing.

## Related Articles

-   [Selenium driver](https://docs.robotiq.ai/en/article/selenium-driver)
-   [Open Selenium Step](https://docs.robotiq.ai/en/article/open-selenium-step)
-   [Web Automation with Selenium](https://docs.robotiq.ai/en/article/web-automation-with-selenium)
-   [Error Handling](https://docs.robotiq.ai/en/article/error-handling)

## Need Help?

Can't find what you're looking for? Join the [Robotiq Community](https://community.robotiq.ai/home/) to get help from other users and the Robotiq team.

![](https://cdn-assets.productfruits.com/510c8d4e-1ac7-4479-85d5-af711e748ef6)
