0.1.7
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# 0.1.7
|
||||||
|
- 修复自动bug
|
||||||
# 0.1.6
|
# 0.1.6
|
||||||
- 信息变为本地生成
|
- 信息变为本地生成
|
||||||
# 0.1.5
|
# 0.1.5
|
||||||
|
|||||||
@@ -93,6 +93,13 @@ class Auto:
|
|||||||
if bol:
|
if bol:
|
||||||
logger.debug("ip被ban秒")
|
logger.debug("ip被ban秒")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
bol = self.tab.ele(
|
||||||
|
't:div@text():ERR_TIMED_OUT', timeout=1)
|
||||||
|
if bol:
|
||||||
|
logger.debug("刷新网页")
|
||||||
|
self.tab.refresh()
|
||||||
|
self.tab.wait(1.5)
|
||||||
bol = self.tab.ele(
|
bol = self.tab.ele(
|
||||||
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
||||||
if bol:
|
if bol:
|
||||||
@@ -151,6 +158,13 @@ class Auto:
|
|||||||
# self.tab.wait(1)
|
# self.tab.wait(1)
|
||||||
# return self.click_continue(bl=True)
|
# return self.click_continue(bl=True)
|
||||||
|
|
||||||
|
bol = self.tab.ele(
|
||||||
|
't:div@text():ERR_TIMED_OUT', timeout=1)
|
||||||
|
if bol:
|
||||||
|
logger.debug("刷新网页")
|
||||||
|
self.tab.refresh()
|
||||||
|
self.tab.wait(1.5)
|
||||||
|
|
||||||
bol = self.tab.ele(
|
bol = self.tab.ele(
|
||||||
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
||||||
if bol:
|
if bol:
|
||||||
@@ -190,10 +204,10 @@ class Auto:
|
|||||||
if 'https://veritaconnect.ca/canadianbreadsettlement/en-us/Claimant/UnknownClaimForm' in html:
|
if 'https://veritaconnect.ca/canadianbreadsettlement/en-us/Claimant/UnknownClaimForm' in html:
|
||||||
logger.debug("成功进入问卷界面")
|
logger.debug("成功进入问卷界面")
|
||||||
return True
|
return True
|
||||||
|
jc += 1
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"点击Continue按钮异常: {e}")
|
logger.error(f"点击Continue按钮异常: {e}")
|
||||||
self.tab.wait(1)
|
self.tab.wait(1)
|
||||||
return False
|
|
||||||
|
|
||||||
# 随机取城市
|
# 随机取城市
|
||||||
def get_random_city(self, province: str | None = None):
|
def get_random_city(self, province: str | None = None):
|
||||||
@@ -476,6 +490,12 @@ class Auto:
|
|||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
bol = self.tab.ele(
|
||||||
|
't:div@text():ERR_TIMED_OUT', timeout=1)
|
||||||
|
if bol:
|
||||||
|
logger.debug("刷新网页")
|
||||||
|
self.tab.refresh()
|
||||||
|
self.tab.wait(1.5)
|
||||||
bol = self.tab.ele(
|
bol = self.tab.ele(
|
||||||
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
|
||||||
if bol:
|
if bol:
|
||||||
|
|||||||
Reference in New Issue
Block a user