Katalon Studio无法在Windows对象间谍中启动应用程序

时间:2019-11-28 08:35:55

标签: selenium katalon-studio winappdriver

我使用Katalon Studio 7.0.4Windows Application Driver v1.2 RC并允许防火墙上的端口4723。我使用PuTTY进行测试。连接成功,应用程序显示在间谍工具中,但尝试使用某些方法(例如:click,getText)时出现错误。我在日志中看到以下错误。

在服务器端:

==========================================
GET /session/3A8AB5F8-E6B3-4FB1-9C14-E48B8F4F5C4D/screenshot HTTP/1.1
Accept-Encoding: gzip
Cache-Control: no-cache
Connection: Keep-Alive
Host: myip:4723
User-Agent: selenium/3.141.59 (java windows)

HTTP/1.1 500 Internal Error
Content-Length: 133
Content-Type: application/json

{"status":13,"value":{"error":"unknown error","message":"An unknown error occurred in the remote end while processing the command."}}


==========================================
GET /session/3A8AB5F8-E6B3-4FB1-9C14-E48B8F4F5C4D/window_handle HTTP/1.1
Accept-Encoding: gzip
Cache-Control: no-cache
Connection: Keep-Alive
Host: myip:4723
User-Agent: selenium/3.141.59 (java windows)


HTTP/1.1 200 OK
Content-Length: 84
Content-Type: application/json

{"sessionId":"3A8AB5F8-E6B3-4FB1-9C14-E48B8F4F5C4D","status":0,"value":"0x000A09F4"}

在客户端:

  

org.openqa.selenium.WebDriverException:发生未知错误   远端处理命令时。 (警告:服务器做了   (不提供任何堆栈跟踪信息)命令持续时间或超时:0   毫秒版本信息:版本:“ 3.141.59”,修订版:“ e82be7d358”,   时间:“ 2018-11-14T08:25:53”系统信息:主机:“ LAPTOP”,IP:   ‘192.168.56.1’,操作系统名称:“ Windows 10”,操作系统名称:“ amd64”,操作系统版本:   ‘10 .0’,java.version:‘1.8.0_181’驱动程序信息:   io.appium.java_client.windows.WindowsDriver功能{app:   C:\ Users \ user101 \ Downloads…,javascriptEnabled:true,平台:   WINDOWS,platformName:WINDOWS}会话ID:   3A8AB5F8-E6B3-4FB1-9C14-E48B8F4F5C4D在   sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)   在   sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)   在   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)   在java.lang.reflect.Constructor.newInstance(Constructor.java:423)在   org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)   在   org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)   在   org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)   在   org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)   在   org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)   在   org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)   在   io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)   在   org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)   在   io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)   在io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)处   io.appium.java_client.windows.WindowsDriver.execute(WindowsDriver.java:1)   在   org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)   在   com.kms.katalon.composer.windows.spy.WindowsInspectorController.captureScreenshot(WindowsInspectorController.java:82)   在   com.kms.katalon.composer.windows.dialog.WindowsRecorderDialog $ 3.captureImage(WindowsRecorderDialog.java:653)   在   com.kms.katalon.composer.windows.dialog.WindowsRecorderDialog $ 3.run(WindowsRecorderDialog.java:620)   在   org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:119)

在Katalon Studio中: Katalon  Studio Windows Spy tool

0 个答案:

没有答案