jeangnc / us-visa-bot

US Visa Bot
MIT License
151 stars 30 forks source link

Scheduling Group Appointments #16

Open lernik44 opened 9 months ago

lernik44 commented 9 months ago

How can I improve this code to book a group appoinment?

Unlike individual appointments, the group appointment has one additional step. In case of a group appointment, after you click 'Reschedule Appointment' it takes you to a page where you select the members of the group for whom you want to reschedule. Normally you want to put checkboxes for all the persons on that list. And then you click 'Continue' at the bottom. Afterward, it takes you to the page where you select the consular section, date, and time, so this step and the following steps are already the same both for individuals and groups.

snayyar00 commented 9 months ago

You just have to add extra step in this " else { currentBookedDate = date const time = await checkAvailableTime(sessionHeaders, date)

    book(sessionHeaders, date, time)
      .then(d => log(`booked time at ${date} ${time}`))
  }

"

lernik44 commented 4 months ago

Did it work for you?