使用提供的 UI 元素初始化 SendKeysAction 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
语法
public SendKeysAction(
UITechnologyElement element
)
public:
SendKeysAction(
UITechnologyElement^ element
)
new :
element:UITechnologyElement -> SendKeysAction
Public Sub New (
element As UITechnologyElement
)
参数
- element
一个 UITechnologyElement 对象,表示在其上发送键的元素。
备注
发送键不能用于模拟测试录制。
请参阅
UITechnologyElement
SendKeysAction 重载
SendKeysAction 类
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首