Skip to content

Commit a2fc457

Browse files
authored
Merge pull request #221 from ctripcorp/main_yls_webhover
fix: web hover问题
2 parents 5fbe719 + 0169bc9 commit a2fc457

File tree

1 file changed

+5
-0
lines changed
  • flybirds/core/plugin/plugins/default/web

1 file changed

+5
-0
lines changed

flybirds/core/plugin/plugins/default/web/element.py

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def get_ele_text(self, param):
9292

9393
def ele_hover(self, context, param):
9494
locator, timeout = self.get_ele_locator(param)
95+
try:
96+
self.page.mouse.move(1, 1)
97+
self.page.wait_for_timeout(50)
98+
except Exception as e:
99+
log.info(f'ele_hover error: {e}')
95100
locator.hover(timeout=timeout)
96101

97102
def ele_click(self, context, param):

0 commit comments

Comments
 (0)