所以这有点棘手。使用三.js/js还有帆布。你知道吗
Scenario: When I click and drag a sphere beyond its boundaries a tooltip will show a warning message over the mouse pointer. When I release the mouse the tooltip will disappear. When I click and drag the sphere back to a position inside the boundaries, the tooltip will not be displayed once inside the boundaries.
请记住,这与react处理的应用程序的状态有关,在本例中,当满足条件并在状态中更新时,工具提示将被更新。你知道吗
工具提示元素是存在的,但是属性和内容会在球体超出边界时通过单击并按住更新。。。 使用
ActionChains(page.driver).move_to_element_with_offset(sphere_order_panel, -1047, 398).click_and_hold().move_to_element_with_offset(sphere_order_panel, -1633, 265).click_and_hold().perform()
单击元素并将其拖动到其边界以外的位置,但工具提示不会更新。。。我在页面上放置了一个断点,当我手动点击页面时,我的球体会被捕捉到我的鼠标位置(意味着click_and_hold
确实在工作。。。但是我检查了html并确认工具提示没有更新。但是,如果我手动使用鼠标并单击球体,工具提示将更新!selenium automation是否未正确执行单击和按住?我不认为是这样。你知道吗
有没有办法使用selenium将鼠标指针添加到页面上?你知道吗
或者有没有办法使用execute_script()
在页面上使用javascript来满足我的条件来更新工具提示?你知道吗
我真的被这个困住了。。这是一个棘手的情况(至少对我来说)
非常感谢您的帮助。你知道吗
为了解决我的问题,我不得不这么做
chain = ActionChains(page.driver).move_to_element_with_offset(sphere_order_panel, -1047, 398).click_and_hold() chain = chain.move_to_element_with_offset(sphere_order_panel, -1047, 398) chain.perform()
相关问题 更多 >
编程相关推荐