为什么WinAppDriver.exe立即关闭? [英] Why does WinAppDriver.exe close immediately?

查看:460
本文介绍了为什么WinAppDriver.exe立即关闭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力使WinAppDriver正常运行.这是一种使用Selenium来测试窗口应用程序的方法.

I have been struggling to get anything working with WinAppDriver. It's a way of using Selenium to to test window applications.

按照下面的说明,我已经安装了WinAppDriver.运行它时,它应该在命令窗口中保持打开状态.但是,矿井并没有开放,这就是问题所在.

As per the instructions below, I have installed WinAppDriver. When you run it, it should stay open in a command window. Mine does not stay open however and that is the problem.

我的问题是,当我导航到"C:\ Program Files(x86)\ Windows应用程序驱动程序"并运行WinAppDriver.exe时,为什么WinAppDriver立即关闭?我尝试右键单击并选择以管理员身份运行",然后发生同样的事情.

My Question is why does WinAppDriver close immediately when I navigate to "C:\Program Files (x86)\Windows Application Driver" and run WinAppDriver.exe? I have tried right clicking and choosing "Run as administrator" and the same thing happens.

我已经与IT支持人员进行了交谈,他们检查了防病毒程序是否能够阻止它.

I have spoken to IT support and they checked that anti virus wasn't blocking it.

我关注的演示视频为此处,并且从此处安装了WinAppDriver,它需要正在运行.运行时,它会打开一个CMD窗口,显示Window Application Driver listening for requests at: http://127.0.0.1:4723/ Press ENTER to exit..

The demo video I am following is here and WinAppDriver is installed from here and it needs to be running. When running it opens a CMD window which says Window Application Driver listening for requests at: http://127.0.0.1:4723/ Press ENTER to exit..

您可以在大约5:30的视频中看到它们启动WinAppDriver.exe,并且CMD窗口打开并保持打开状态.矿山立即关闭的可能原因是什么?

You can see in the video at about 5:30, they launch WinAppDriver.exe and the CMD window opens and stay open. What possible reasons are there that mine closes immediately?

安装和运行Windows应用程序驱动程序

Installing and Running Windows Application Driver

1.从 https://github.com/Microsoft/WinAppDriver/releases下载Windows应用程序驱动程序安装程序

2.在Windows 10机器上运行安装程序,该机器将安装并测试您的应用程序

2.Run the installer on a Windows 10 machine where your application under test is installed and will be tested

3.从安装目录中运行WinAppDriver.exe(例如C:\ Program Files(x86)\ Windows Application Driver)

3.Run WinAppDriver.exe from the installation directory (E.g. C:\Program Files (x86)\Windows Application Driver)

推荐答案

在我看来,答案是设置开发人员模式".只需转到开始"菜单,然后键入使用开发人员功能".将开发人员模式"设置为开"并同意安装等.在教程中没有人告诉我这些东西...

The answer in my case was to set "Developer Mode". Just go to the Start menu and type "Use Developer Features". Set "Developer mode" to On and agree to the instal etc. Nobody told me this stuff in the tutorials...

这篇关于为什么WinAppDriver.exe立即关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆