当 DropZone 在 DragStart 之后出现时,TestCafe DragNDrop 不工作
TestCafe DragNDrop Not Working When DropZone Appears After DragStart
我最近开始使用 TestCafe 并且正在尝试使用 t.dragToElement(selector, destinationSelector)
方法。
问题是,直到我开始拖动,拖放区才出现。它使用 display: none
隐藏并出现在 DragStart 上。因此 TestCafe 失败
The element that matches the specified "destinationSelector" is not visible.
问:有什么想法,如何让TestCafe点击并按住并拖动一点然后拖动到目的地然后释放?
不幸的是现在它非常复杂(如果可能的话)。但看起来 dragToElement
绝对应该以允许您的用例的方式实施,所以我在我们的 GitHub 中创建了一个问题:#1374,它将开箱即用.欢迎在 GitHub 上发表评论,添加一些细节等
我最近开始使用 TestCafe 并且正在尝试使用 t.dragToElement(selector, destinationSelector)
方法。
问题是,直到我开始拖动,拖放区才出现。它使用 display: none
隐藏并出现在 DragStart 上。因此 TestCafe 失败
The element that matches the specified "destinationSelector" is not visible.
问:有什么想法,如何让TestCafe点击并按住并拖动一点然后拖动到目的地然后释放?
不幸的是现在它非常复杂(如果可能的话)。但看起来 dragToElement
绝对应该以允许您的用例的方式实施,所以我在我们的 GitHub 中创建了一个问题:#1374,它将开箱即用.欢迎在 GitHub 上发表评论,添加一些细节等