corp1107
This commit is contained in:
@@ -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("点击评价中心")
|
||||
|
||||
Reference in New Issue
Block a user