Trying to get those last-minute cancellation spots on ICBC? I know some people would check the website once every hour. But you can really just automate the whole process.
This method is kind of like selenium - it manipulates the DOM but all you need is running the script on Chrome DevTools. Part of the code snippet was taken from Bitwarden, a password managing extension, where they use the same technique to fill in the password on any website.
- Prerequisite: you need first book a valid appointment from any location manually. This is just a quick way for the script to know your account is eligible for booking
- Visit the ICBC road test book site.
- Open DevTools (Ctrl+Shift+J) on your favourite Chromium browser.
- Run command (Ctrl+Shift+P), look for
Create new snippet
- Copy and paste the script into the snippet that was created.
- Edit the
CONFIG
. Fill in the login info and preferences. - Run the snippet (Ctrl+Enter)
Notice the page logs in itself? That's it! Now just leave the tab open. Turn up the volume, so you don't miss the alert.
As soon as it catches a desired date, you will hear a tsunami alert, CONGRATS, you found a closer date! Now go check your email inbox and finish the verification on the page!
Good luck on your road test! Either be kick ass or kick the examiner's ass!