Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过代码模拟silverlight UI中按下的“回车”键?_C#_.net_Silverlight_Automated Tests_Ui Automation - Fatal编程技术网

C# 通过代码模拟silverlight UI中按下的“回车”键?

C# 通过代码模拟silverlight UI中按下的“回车”键?,c#,.net,silverlight,automated-tests,ui-automation,C#,.net,Silverlight,Automated Tests,Ui Automation,如何在我的自动化测试用例中通过C代码模拟用户在Silverlight UI应用程序屏幕中按下的“Enter”键?如果您正在寻找类似UI自动化框架的解决方案,那么只需查找元素在其自动化模式中是否有调用模式。 调用的作用通常与单击按钮或任何其他元素上的enter键完全相同 如果您正在寻找模拟实际按下Enter键的解决方案,那么您需要使用Win32 API并使用Keyboard.SendKeys{Enter} 你正在寻找类似键盘的东西吗;还是打字?

如何在我的自动化测试用例中通过C代码模拟用户在Silverlight UI应用程序屏幕中按下的“Enter”键?

如果您正在寻找类似UI自动化框架的解决方案,那么只需查找元素在其自动化模式中是否有调用模式。 调用的作用通常与单击按钮或任何其他元素上的enter键完全相同


如果您正在寻找模拟实际按下Enter键的解决方案,那么您需要使用Win32 API并使用Keyboard.SendKeys{Enter}

你正在寻找类似键盘的东西吗;还是打字?