Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/321.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# 如何执行Cntrl+;一个使用Selenium的功能,代码用C编写#_C#_Selenium - Fatal编程技术网

C# 如何执行Cntrl+;一个使用Selenium的功能,代码用C编写#

C# 如何执行Cntrl+;一个使用Selenium的功能,代码用C编写#,c#,selenium,C#,Selenium,这是我正在使用的代码: Actions act =new Actions(driver); act.SendKeys(Keys.Control); 您不需要使用操作,sendkeys支持以下功能: 元素SendKeys(key.Control+“A”)

这是我正在使用的代码:

Actions act =new Actions(driver);
act.SendKeys(Keys.Control);

您不需要使用操作,sendkeys支持以下功能:

元素SendKeys(key.Control+“A”)