# Using {click} to use "Create an Event" button in Gmail calendar sidebar?

**URL:** <https://community.blaze.today/t/using-click-to-use-create-an-event-button-in-gmail-calendar-sidebar/52375>\
**Category:** Questions and Help\
**Created:** [July 23, 2025, 6:29pm UTC](https://community.blaze.today/t/using-click-to-use-create-an-event-button-in-gmail-calendar-sidebar/52375 "2025-07-23T18:29:52Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Gaurang\_Tandon](https://community.blaze.today/user_avatar/community.blaze.today/gaurang_tandon/32/3796_2.png) [@Gaurang\_Tandon](https://community.blaze.today/u/Gaurang_Tandon)\
**Post date:** [July 31, 2025, 7:07am UTC](https://community.blaze.today/t/using-click-to-use-create-an-event-button-in-gmail-calendar-sidebar/52375/6 "2025-07-31T07:07:46Z")

</div>

Hi Joe, we would use something like this:

{if: catch({site: selector=[role=tabpanel]:not([style\*=none]) iframe[title="Calendar"]}, "NONE") = "NONE"} {click: selector=div[role=tab][aria-label="Calendar"]}{wait: delay=0.5s}{endif}{click: xpath=//iframe[@title="Calendar"] |\> //button[contains(string(.), 'Create an event')]}

The {site} command checks for the existence of a visible Calendar iframe. If it's missing, as checked by the catch() function, it emulates a click on the Calendar button to open the Calendar frame.

Although, on my end - the click on the Calendar button is not working. I will look into this later and get back to you with any updates. It looks like the button is not being focused in the first place.

---

_[View the full topic](https://community.blaze.today/t/using-click-to-use-create-an-event-button-in-gmail-calendar-sidebar/52375)._
