-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OpenQA.Selenium.WebDriverException The HTTP request to the remote WebDriver server for URL timed out after 60 seconds. #1976
Comments
Try getting the page source. |
Still its giving the same issue `POST /session/9DCFA9B5-8698-4016-952C-3D8AABCE56F7/element HTTP/1.1 {"using":"name","value":"Taskbar"} {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0,"value":{"ELEMENT ========================================== {"using":"name","value":"Start"} HTTP/1.1 200 OK {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0,"value":{"ELEMENT ========================================== POST /session/9DCFA9B5-8698-4016-952C-3D8AABCE56F7/element/42.66270.4.35/click H {} {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0} ========================================== {"using":"accessibility id","value":"StartMenuSearchBox"} {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0,"value":{"ELEMENT ========================================== POST /session/9DCFA9B5-8698-4016-952C-3D8AABCE56F7/element/42.66078.4.3/value HT {"value":["PATH\Resources\FileUploadExe\MTP.docx"]} {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0} ========================================== {"value":[""]} {"sessionId":"9DCFA9B5-8698-4016-952C-3D8AABCE56F7","status":0} ========================================== |
Dude, you need to store the page source to a log file or text file and check if the page source contains the element. |
Yes, I tried the same, the element is present in the Page Source, but still getting the same exception. Even I tried increasing the Implicit wait while initializing the driver but still the issue is persistent. Do you know any other work around for this? |
That's strange will it be possible to share any screen recording? |
Hello guys, I recently started using WinAppDriver, I am facing a issue of timeout exception, whenever trying to find a certain element.
I am using WinAppDriver with Specflow, Appium and Selenium.
Now In the scenario "A", the driver is able to find the element of the Search bar present in the task bar of Windows 11. Now when I run the same thing in scenario "B", it gives me the exception that I mentioned. The element is same, the workflow is same, everything is same only that the scenario is different, and I am using hooks so the specflow hooks are also the same. Can anyone help me out if you have faced a similar issue?
Below is the Stack of the exception:
OpenQA.Selenium.WebDriverException The HTTP request to the remote WebDriver server for URL http://127.0.0.1:4723/session/94514B13-90D8-4D25-B6F2-4656280AC515/element timed out after 60 seconds. at OpenQA.Selenium.Appium.Service.AppiumCommandExecutor.Execute(Command commandToExecute) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary
2 parameters)at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Appium.AppiumDriver
1.FindElement(String by, String value) at OpenQA.Selenium.Appium.AppiumDriver
1.FindElementByAccessibilityId(String selector)`
Below is the log from the Console of the WinAppDriver.exe:
`
POST /session/94514B13-90D8-4D25-B6F2-4656280AC515/element HTTP/1.1
Accept: application/json, image/png
Connection: Keep-Alive
Content-Length: 33
Content-Type: application/json;charset=utf-8
Host: 127.0.0.1:4723
traceparent: 00-891dadc9e7372967c7686d3a170c1518-678ffb6acf2376ff-00
User-Agent: selenium/3.141.0 (.net windows)
{"using":"name","value":"Search"}
`
Below are the versions of the Nugget packages in the project:
<PackageReference Include="Appium.WebDriver" Version="4.1.1" /> <PackageReference Include="Selenium.Support" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver" Version="3.141.0" /> <PackageReference Include="SpecFlow" Version="3.4.8" /> <PackageReference Include="SpecFlow.xUnit" Version="3.4.8" />
Below is the code for the driver initialization:
Process.Start(@winappDriverExecutablePath); AppiumOptions appiumOptions = new AppiumOptions(); appiumOptions.AddAdditionalCapability("app", "Root"); _deskTopDriver = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723"), appiumOptions);
The text was updated successfully, but these errors were encountered: