Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/how-to-find-the-css-selector-of-an-element-using-whatfix-editor

# Can Whatfix capture the CSS selector of an element?

Yes, Whatfix captures the CSS selector of an element using Whatfix Studio in two scenarios:

- While adding a Branching rule to a Flow step.
- While adding a Display Rule to content.

Use the following steps to capture the CSS Selector using Whatfix Studio:

**Capture CSS Selector while Branching**

1. Launch the Whatfix Studio, create a Flow, and then click the **branching** icon. ![clm\_branching icon](/images/97/clm_branching-icon-97770bca.png)

> [!INFO]
>
> For more information, see [Add a branch to a Flow](/web/adding-a-branch-to-a-flow)

1. Click **Create Branch**. ![clm\_branching revamp\_create branch](/images/8b/clm_branching-revamp_create-branch-8b382e0b.png)
2. Under **Branching conditions**, click **Add Rule**. ![clm\_branching\_add rule1](/images/bb/clm_branching_add-rule-1-bb4dbe5d.png)
3. Select **Action Element Is** rule using the dropdown. ![clm\_branching\_action element is](/images/2f/clm_branching_action-element-is-2f065a4e.png)
4. Select the **Select Element** option from the dropdown instead of **CSS Selector**. ![clm\_branching\_select element](/images/52/clm_branching_select-element-5267d02a.png)
5. Click **Select**. ![clm\_branching\_select button](/images/8c/clm_branching_select-button-8c859223.png)
6. Click the element for which you want to find a CSS Selector in the application's UI.

![Selecting an element in the application UI so Whatfix captures its CSS Selector for a Branching rule](/images/75/CSS-selector-75663e95.png)

---

> [!WARNING]
>
> - Whatfix captures the CSS Selector of the element automatically.
> - To verify the selected element click the **View** icon. ![clm\_branching\_view icon](/images/de/clm_branching_view-icon-de249846.png)

**Capture CSS Selector while configuring Display Rules**

1. Launch Whatfix Studio, create the content, and then go to the **ADVANCED OPTIONS** section. ![clm\_css\_advanced options](/images/97/clm_css_advanced-options-9755ec8e.png)
2. Expand the **Display Rules** dropdown, and then click **Add Rule**. ![clm\_css\_add rule](/images/80/clm_css_add-rule-80a50db1.png)
3. Select the **Other Element on Page** option from the dropdown. ![clm\_css\_other elements on page](/images/95/clm_css_other-elements-on-page-951e3897.png)
4. Select the **Select Element** option in the dropdown instead of **CSS Selector**. ![clm\_css\_select element](/images/b1/clm_css_select-element-b1d5bdbc.png)

> [!INFO]
>
> For more information, see [Other Element Is condition as a Visibility Rule](/web/other-element-is-condition-rule).

1. Click **Select**. ![clm\_css\_select button](/images/bb/clm_css_select-button-bb5c14d7.png)
2. Click the element for which you wish to find a CSS Selector in the application's UI.

![Selecting an element in the application UI so Whatfix captures its CSS Selector for a Display Rule](/images/10/CSS-selector-display-rules-105c4713.png)

---

> [!WARNING]
>
> - Whatfix captures the CSS Selector of the element automatically.
> - To verify the selected element, click the **View** icon. ![clm\_css\_view icon](/images/92/clm_css_view-icon-92f36d6d.png)

## Related

- [Visibility and Display Rule Conditions](/web/visibility-and-display-rule-conditions-1)
- [Branching in a Flow](/web/branching-in-a-flow)
- [Identify an element's CSS selector](/web/identify-an-elements-css-selector)
