|
|
@ -413,7 +413,7 @@ func getBookingSlots(browser *rod.Browser, onwardDate string, reverse bool) *rod |
|
|
|
} |
|
|
|
|
|
|
|
func selectBookingSlot(ctx context.Context, page *rod.Page, timeCode string) *rod.Page { |
|
|
|
time.Sleep(1 * time.Second) |
|
|
|
time.Sleep(5 * time.Second) |
|
|
|
// Initial closing of maintenance modal
|
|
|
|
bodyText := page.MustElement("body").MustText() |
|
|
|
if strings.Contains(bodyText, "System maintenance scheduled at 23:00 to 00:15 (UTC+8)") { |
|
|
|