# Simulate mouse click on an element

Use the action `Charles: Simulate mouse click on element` workflow action and give it:

* A CSS selector to select the element you want to simulate the click on
* Please note that Charles will automatically select the first element that matches the selector.

<figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2FUdsdovdwKCldYQPlFlzq%2Fimage.png?alt=media&#x26;token=a567149f-0e02-4ea7-9147-bbfe70b4c2c4" alt=""><figcaption></figcaption></figure>

Learn more about CSS selectors:

* <https://www.w3schools.com/jsref/met_document_queryselector.asp>
* <https://www.w3schools.com/css/css_selectors.asp>
* <https://www.w3schools.com/cssref/css_selectors.php>
