[英]winappdriver based java selenium automation stops working after some time
[英]WinAppDriver based automation stops working on windows 10 VM when I close the RDP connection
我正在我的 Windows 10 虛擬機(通過 RDP)上遠程完成所有工作。 每當我登錄到服務器時,我都可以看到我的自動化運行良好,但是當我關閉我的 RDP 連接時,WinAppDriver 無法在桌面應用程序上找到元素,因此它停止工作。
我該如何解決? 如果我遺漏了什么,請告訴我。
謝謝
當你斷開 RDP session windows 知道它沒有渲染 gui,所以它沒有。
訣竅是斷開不同的方式。 使用以下命令終止與遠程服務器的連接:
%windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console
其中 RDP-Tcp#NNN 是您當前遠程桌面 session 的 ID,例如 RDP-Tcp#5。 您可以在 Session 列的用戶選項卡上的 Windows 任務管理器中看到它。
如果您需要更多信息,請查看此站點https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html
該鏈接用於測試完成而不是 selenium 但步驟是合理的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.