Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zwchu opened this issue Jun 14, 2022 · 0 comments
Open

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

zwchu opened this issue Jun 14, 2022 · 0 comments

Comments

@zwchu
Copy link

zwchu commented Jun 14, 2022

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)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant