There’s an app and a website called MyGate that ‘manages security and community living in housing societies’.
Of many things, it (the app/website) allows residents to book amenities in a housing society.
Amenities like Swimming pool, Tennis Court, Volleyball court, etc.
A typical booking is as follows:
Select an amenity to book, select a date on which the amenity will be used, select a pre-defined time slot (8-9 am or 9-10 pm, etc.), and book it.
I want to automate the process but have been unable to do so.
Following are the things I have tried:
- GUI automation using Selenium IDE on a Windows PC
I tried to automate the process of booking on the MyGate website using Selenium IDE.
The GUI automation fails many a times (sometimes the script is unable to find a button, the pause command isn’t working for the given time duration; i don’t know why). - I tried to find the public APIs of the website.
I couldn’t find any relevant API that would help me to book an amenity. - I used the developer tool on Chrome.
I checked the Network tab and analysed the data.
I did figure out a few things.
Given I was logged in to the website, I found a GET URL that would contain my apartment ID (every apartment has a different ID) and the unique amenity ID and that URL would lead me to a calendar for me to select the date (and later on the time slot).
I have not been able to find out the URL that would take the date, time slot, and book the amenity for me.
Thank you for reading.
3