Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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/2/powershell/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
AWS Windows EC2在前台运行Selenium Webdriver_Windows_Powershell_Amazon Ec2_Amazon Cloudformation_Selenium Grid - Fatal编程技术网

AWS Windows EC2在前台运行Selenium Webdriver

AWS Windows EC2在前台运行Selenium Webdriver,windows,powershell,amazon-ec2,amazon-cloudformation,selenium-grid,Windows,Powershell,Amazon Ec2,Amazon Cloudformation,Selenium Grid,我需要帮助。使用云形成模板,我创建了一个WindowsEC2实例,该实例使用ie11运行selenium代理。但是,我的powershell脚本(使用cf模板触发)在后台运行selenium网格独立jar。因此,当Selenium Grid hub触发测试时,它们也会在后台的ie上运行。问题是我的一些测试捕获了屏幕截图,它们被作为黑屏返回 当selenium grid在前台运行时,我会得到正确的屏幕截图。如何在没有RDP进入windows计算机的情况下解决此问题?问题已解决。Selenium j

我需要帮助。使用云形成模板,我创建了一个WindowsEC2实例,该实例使用ie11运行selenium代理。但是,我的powershell脚本(使用cf模板触发)在后台运行selenium网格独立jar。因此,当Selenium Grid hub触发测试时,它们也会在后台的ie上运行。问题是我的一些测试捕获了屏幕截图,它们被作为黑屏返回


当selenium grid在前台运行时,我会得到正确的屏幕截图。如何在没有RDP进入windows计算机的情况下解决此问题?

问题已解决。Selenium jar是从StartupGPO运行的。您能解释一下您是如何从命令行运行它的吗。在bat文件中创建selenium启动脚本。2.创建可以触发此bat文件的scripts.ini。3.将scripts.ini复制到启动文件夹。4.在组策略中创建必要的注册表变量,以便在启动5时在bat文件上方运行。重新启动机器问题已解决。Selenium jar是从StartupGPO运行的。您能解释一下您是如何从命令行运行它的吗。在bat文件中创建selenium启动脚本。2.创建可以触发此bat文件的scripts.ini。3.将scripts.ini复制到启动文件夹。4.在组策略中创建必要的注册表变量,以便在启动5时在bat文件上方运行。重新启动机器