2023-01-05, reduce cityline 10 seconds waiting.

master
CHUN YU YAO 2023-01-05 14:44:45 +08:00
parent aea3592e92
commit dbf9cb906f
2 changed files with 10 additions and 2 deletions

View File

@ -40,7 +40,7 @@ warnings.simplefilter('ignore',InsecureRequestWarning)
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = u"MaxBot (2023.01.04)"
CONST_APP_VERSION = u"MaxBot (2023.01.05)"
CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com"
@ -4891,6 +4891,14 @@ def cityline_main(driver, url, config_dict):
if '/Login.html' in url:
return
# https://msg.cityline.com/
if 'msg.cityline.com' in url:
try:
driver.execute_script("goEvent();")
except Exception as exec1:
pass
pass
try:
window_handles_count = len(driver.window_handles)
if window_handles_count > 1:

View File

@ -19,7 +19,7 @@ import json
import webbrowser
import pyperclip
CONST_APP_VERSION = u"MaxBot (2023.01.04)"
CONST_APP_VERSION = u"MaxBot (2023.01.05)"
CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom"
CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"