def check_block(self):
time.sleep(5)
block = self.is_element_visible(CheckinPageLocators.BLOCK)
if block:
print("???????")
actions = ActionChains()
# actions.click_and_hold(block)
# actions.move_by_offset(258, 0)
actions.drag_and_drop_by_offset(block, 258, 0)
actions.perform()
time.sleep(2)
flag = 1 if '????' in self.page_source() else 0
return flag
else:
print("????????????")
flag = 1
return flag
评论列表
文章目录