-
Notifications
You must be signed in to change notification settings - Fork 189
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
feat: Override selenium default command timeout #818
Conversation
@Dor-bl ten minutes seems crazy. Is that in-line with the other clients? |
Yes it is. Sometimes the startup phase for mobile sessions can take quite lot of time. For example, to boot an iOS simulator on a slow CI node. |
Also, the server and drivers usually limit command timings as well, for example via newCommandTimeout, proxy timeout, etc, which means killing the client connection due to read timeout must be used as a last resort. In most of cases such timeout would mean a bug or a missing timeout handler at the server side. |
I wondered if it would be nice to have a troubleshooting and add this time thing in our test code as an example rather than overriding the existing one in selenium to avoid unexpected modification in the parent (selenium) side. Just a personal preference. |
You mean part of the Wiki? Because I don't think most users look in the test code. |
Yea, this is not strong opinion for the default value itself though. When we override the value, probably it would be nice to address it in somewhere as well, docstring or wiki? in this dotnet client case. How to modify the timeout in Wiki also should help (as a general documentation thing) Btw, the commit prefix could be |
@KazuCocoa, Let me know what you think. |
I don't want to abandon anything. The change makes sense and does fix potential user issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
List of changes
Override and increase the default HTTP requests command timeout from 1 minute to 10 minutes.
Types of changes
What types of changes are you proposing/introducing to the .NET client?
Put an
x
in the boxes that applyDocumentation
This can be done by navigating to the documentation section on http://appium.io selecting the appropriate command/endpoint and clicking the 'Edit this doc' link to update the C# example
Integration tests
Details
Please provide more details about changes if necessary. You can provide code samples showing how they work and possible use cases if there are new features. Also, you can create gists with pasted C# code samples or put them here using markdown.
About markdown please read Mastering markdown and Writing on GitHub