本文介绍了Selenium 2.0 WebDriver进阶交互DoubleClick帮助(c#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,在我的硒回归测试中,我一直试图双击日历以创建新的应用.我试图使用doubleClick();AdvancedUserInteractions库中的方法,但是存在问题;这两次单击的速度不够快/不够紧密,无法触发实际的双击!有没有人在测试中找到解决此问题的方法?
So within my selenium regression tests, I've been trying to double click on a calendar to make a new appt. I have attempted to use the doubleClick(); method within the advanceduserinteractions library, but there is an issue; the two clicks aren't fast enough/close enough together to fire an actual double-click! Has anybody found a way to deal with this in their testing?
推荐答案
此代码对我有用!
Actions action = new Actions(driver);
action.doubleClick(myElemment);
action.perform();
这篇关于Selenium 2.0 WebDriver进阶交互DoubleClick帮助(c#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!