2023-12-08, update for ticket-plus

master
CHUN YU YAO 2023-12-14 20:15:23 +08:00
parent 60a4b42233
commit ca82e4cefc
4 changed files with 11 additions and 4 deletions

View File

@ -53,7 +53,7 @@ import webbrowser
import chromedriver_autoinstaller import chromedriver_autoinstaller
CONST_APP_VERSION = "MaxBot (2023.12.07)" CONST_APP_VERSION = "MaxBot (2023.12.08)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
@ -11063,6 +11063,13 @@ def ticketplus_order_expansion_auto_select(driver, config_dict, area_keyword_ite
area_list = driver.find_elements(By.CSS_SELECTOR, my_css_selector) area_list = driver.find_elements(By.CSS_SELECTOR, my_css_selector)
is_click_on_folder = True is_click_on_folder = True
if len(area_list)==1:
my_css_selector = 'div.seats-area > div.v-expansion-panel[aria-expanded="true"]'
area_list_parent = driver.find_elements(By.CSS_SELECTOR, my_css_selector)
if len(area_list_parent) > 0:
# change keyword to match all.
area_keyword_item = ""
except Exception as exc: except Exception as exc:
if current_layout_style == 1: if current_layout_style == 1:
print("find .v-expansion-panels date list fail") print("find .v-expansion-panels date list fail")

View File

@ -22,7 +22,7 @@ import sys
import threading import threading
import webbrowser import webbrowser
CONST_APP_VERSION = "MaxBot (2023.12.06)" CONST_APP_VERSION = "MaxBot (2023.12.08)"
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -34,7 +34,7 @@ import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = "MaxBot (2023.12.07)" CONST_APP_VERSION = "MaxBot (2023.12.08)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"

View File

@ -27,7 +27,7 @@ import pyperclip
import tornado import tornado
from tornado.web import Application from tornado.web import Application
CONST_APP_VERSION = "MaxBot (2023.12.06)" CONST_APP_VERSION = "MaxBot (2023.12.08)"
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"