我在C#中使用Selenium2 WebDriver
Actions.Build - 返回IAction可用于执行操作的组合.(IActions有一个执行操作的Perform方法)Actions.Perform - 执行当前构建的操作.
在大多数考试中使用这样的动作:
new Actions(IWebDriverObj).actions...Build().Perform()
Run Code Online (Sandbox Code Playgroud)
但这也有效
new Actions(IWebDriverObj).actions...Perform() //no Build before Perform
Run Code Online (Sandbox Code Playgroud)
是否有必要在Perform()或Build()之前使用Build()仅用于某些兼容性目的?
提前谢谢你的答案