Fix(booking-job): Fixed payment button
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-10-20 00:28:20 +08:00
parent a8cfc6b0b9
commit 68b6e85d35

View File

@@ -506,7 +506,7 @@ func fillPassengerDetails(page *rod.Page, name string, gender string, passport s
}
func choosePaymentKTMWallet(page *rod.Page) *rod.Page {
creditCardButton := page.MustElement(".btn-ktmb-ewallet")
creditCardButton := page.MustElement("#btnKtmbEWallet")
creditCardButton.Eval(`this.click()`)
page.MustWaitLoad()
@@ -514,7 +514,7 @@ func choosePaymentKTMWallet(page *rod.Page) *rod.Page {
}
func choosePaymentCreditCard(page *rod.Page) *rod.Page {
creditCardButton := page.MustElement(".btn-public-bank")
creditCardButton := page.MustElement("#btnGoPaymentPublicBank")
creditCardButton.Eval(`this.click()`)
page.MustWaitLoad()