This commit is contained in:
2025-11-07 14:37:13 +08:00
parent 7dcbfad4a2
commit e4e71c5bc0
5 changed files with 161 additions and 813 deletions
+9
View File
@@ -312,6 +312,12 @@ class Sinopec_ewcc(object):
return False
def reopen_browse(self):
self.tab.get(self.url)
self.tab.refresh()
logger.info("重新打开浏览器")
time.sleep(2) # 可以考虑替换为条件等待
def query_memeber(self):
try:
@@ -381,6 +387,7 @@ class Sinopec_ewcc(object):
def query_oil_fw_tj(self):
try:
self.reopen_browse()
# 切换到积分中心
self.tab.ele("@@tag()=li@@title=评价中心").click()
logger.info("点击评价中心")
@@ -459,6 +466,7 @@ class Sinopec_ewcc(object):
def query_oil_current_month_lj(self):
try:
self.reopen_browse()
# 切换到积分中心
self.tab.ele("@@tag()=li@@title=评价中心").click()
logger.info("点击评价中心")
@@ -505,6 +513,7 @@ class Sinopec_ewcc(object):
def query_client_emp_tj(self):
try:
self.reopen_browse()
# 切换到积分中心
self.tab.ele("@@tag()=li@@title=评价中心").click()
logger.info("点击评价中心")