Question
Google Calendar interrogation issues
Hi,
I'm creating an automation that would read an excel file with information to create calendar events in Google Calendar. I've been able to interrogate Google Calendar and match the Create button, the More options button, Title, location and guests text boxes. However I'm hitting two issues:
1) When the automation runs it goes all the way to the event details (after clicking "More options") and I'm adding the text to the text field. However it doesn't stick. When saving the event it will save as "no title". So I used the developer tools of the Chrome browser and inspected the input text and noticed that when I typed the title a property called "data-initial-value" will hold the typed text. So I added that in the automation with no luck. I'm attaching a screenshot of the automation and of the google calendar inspection. Any pointer into what can I try to make it work?
2) I am able to work with the automation only for 1 day. The next day for some reason the controls do not seem to match. I have to redo the interrogation. See attached image where I started the interrogation and the btnCreate is not matching. Any idea into why is that and how to solve it?
Hello Pedro,
For you first issue, you need a js script that will raise events on the input tag.
This js function works for the element you have highlighted in your screenshot
function raiseInputEvent(text){
var target = document.querySelectorAll('[aria-label="Title"]')[0];
target.value = text;
var ev2 = new Event('input', { bubbles: true});
target.dispatchEvent(ev2);
}
The reason you are interrogating control every single day is because the match rules you are using are not unique. You need to find a match rule with an attribute that will stay unique each run like the one I used in my js function of attribute aria-label and the value is Title.
Link on understanding match rule : https://community.pega.com/knowledgebase/documents/pega-robotic-automation-best-practices-using-match-rules
Thanks