saucepleez / taskt

taskt (pronounced 'tasked' and formely sharpRPA) is free and open-source robotic process automation (rpa) built in C# powered by the .NET Framework
http://www.taskt.net/
1.06k stars 346 forks source link

Activate Window is browser how can i get browser info #293

Open zwchu opened 2 years ago

zwchu commented 2 years ago

I activated a browser window and wanted to operate elements in this window, but an error was displayed. The log is as follows. Does anyone know how to handle it,thanks

2022-06-14 22:18:54.054 +08:00 [INF] Running Line 1: Activate Window [Target Window: 腾讯广告服务商系统 - Google Chrome] 2022-06-14 22:18:54.333 +08:00 [INF] Skipping Line 2: Get Browser Info [Get 'Window Title' and apply to 'browser_title', Instance Name: 'default'] 2022-06-14 22:18:54.369 +08:00 [INF] Skipping Line 3: Show Message [Message: {browser_title}] 2022-06-14 22:18:54.395 +08:00 [INF] Running Line 4: Element Action [Find Element By XPath and Invoke Click, Instance Name: 'default'] 2022-06-14 22:18:58.797 +08:00 [INF] Result Code: Error 2022-06-14 22:18:58.797 +08:00 [INF] Error: OpenQA.Selenium.WebDriverException: Unexpected error. System.Net.WebException: 无法连接到远程服务器 ---> System.Net.Sockets.SocketException: 由于目标计算机积极拒绝,无法连接。 127.0.0.1:56403 在 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- 内部异常堆栈跟踪的结尾 --- 在 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 在 System.Net.HttpWebRequest.GetRequestStream() 在 OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) 在 OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) 在 OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) 在 OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters) 在 taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteCommand(ScriptAction command) 在 taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteScript(String data, Boolean dataIsFile)`