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

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.