如何将鼠标悬停在使用 TestCafe 上?

How to hover over using TestCafe?

作为自动化测试的一部分,我想将鼠标悬停在 this node. which has a complex source code. You can find the code here .有人可以使用 TestCafe.

使用语法 .hover(Selector(?)) 说出可以悬停的代码吗

提前致谢!

目前,只有通过 <svg> 标签将节点插入到 HTML 文档中,您才能在 svg 中 select 个节点。 TestCafe 不支持通过 <object> 标签从单独文档导入的 svg 中的 selecting 元素。

有多种方法可以使用 Selector select TestCafe 中的元素。为此,您需要确定元素的显着特征。这些可能包括元素的 id、class、属性、在 DOM 树中的位置或与其他元素的关系。然后,您需要根据这些功能之一创建 Selector

有关 TestCafe 的更多信息 select 或参阅 our documentation