You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add RelaxSslValidation property and IsModified method
Added a new property `RelaxSslValidation` to the `AppiumClientConfig` class to allow users to specify whether SSL validation should be relaxed. Introduced a new method `IsModified` that checks if the current configuration has been modified from the default configuration, specifically comparing the `DirectConnect` and `RelaxSslValidation` properties.
* Add AppiumHttpCommandExecutor class with custom HttpClientHandler
Introduce AppiumHttpCommandExecutor in OpenQA.Selenium.Appium.Service.
This class inherits from HttpCommandExecutor and includes two constructors
for initializing with a Uri and TimeSpan, with an optional AppiumClientConfig.
Override CreateHttpClientHandler to customize HttpClientHandler with a
callback for server certificate validation. Add ModifyHttpClientHandler
method to return the customized handler. Include necessary using directives.
* Switch to AppiumHttpCommandExecutor for better integration
Replaced instances of HttpCommandExecutor with AppiumHttpCommandExecutor
in AppiumCommandExecutor.cs. Updated CreateRealExecutor and
GetNewExecutorWithDirectConnect methods to return AppiumHttpCommandExecutor.
Modified ModifyNewSessionHttpRequestHeader to cast commandExecutor to
AppiumHttpCommandExecutor and added a call to ModifyHttpClientHandler with
ClientConfig. These changes enhance the command execution process by
leveraging Appium-specific functionalities.
* Refactor AppiumCommandExecutor and AppiumHttpCommandExecutor
Updated CreateRealExecutor to accept AppiumClientConfig and pass it to AppiumHttpCommandExecutor. Modified constructors of AppiumCommandExecutor to include clientConfig. Reformatted Execute and HandleCommandException methods for consistency. Cleaned up ModifyNewSessionHttpRequestHeader method to remove commented-out code and ensure IdempotencyHeader is added. Updated AppiumHttpCommandExecutor constructor to optionally accept clientConfig and initialize _clientConfig. Adjusted CreateHttpClientHandler to set ServerCertificateCustomValidationCallback based on RelaxSslValidation property. Removed obsolete ModifyHttpClientHandler method.
* Add test for RelaxSslValidation in AppiumClientConfig
A new test method `SetAndGetRelaxSSLValidation` was added to the
`AppiumClientConfigTest` class within the
`Appium.Net.Integration.Tests.ServerTests` namespace. This test
verifies the `RelaxSslValidation` property of the `AppiumClientConfig`
class. It asserts that the default value of `RelaxSslValidation` is
`False`, then sets it to `True` and asserts the updated value.
* Remove `IsModified` method from `AppiumClientConfig`
* Add Apache License header to AppiumHttpCommandExecutor.cs
* Passing clientConfig to ensure consistent behavior in GetNewExecutorWithDirectConnect
* Add RelaxSslValidationTest for Appium SSL validation
* Refactor AppiumHttpCommandExecutor initialization
Refactored the `AppiumHttpCommandExecutor` class to simplify initialization:
- Moved constructor parameters directly into the class definition.
- Initialized `_clientConfig` field at the point of declaration.
- Removed redundant constructor definition and initialization of `_clientConfig` within the constructor body.
* Make ClientConfig readonly in AppiumCommandExecutor
* Add conditional compilation for .NET version-specific tests
* Directly setting callback when enabling the relax SSL Validation.
* Consolidate cleanup logic in RelaxSslValidationTest
* Simplify exception handling in RelaxSslValidationTest
0 commit comments