Skip to content

Commit

Permalink
Revert "Update AppiumDriver.cs"
Browse files Browse the repository at this point in the history
This reverts commit f7854e3.
  • Loading branch information
kelmelzer committed Jul 19, 2024
1 parent 1fa113a commit a4eeb3b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/Appium.Net/Appium/AppiumDriver.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Licensed under the Apache License, Version 2.0 (the "License");
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//See the NOTICE file distributed with this work for additional
//information regarding copyright ownership.
Expand All @@ -23,7 +23,6 @@
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium.Appium.ImageComparison;

namespace OpenQA.Selenium.Appium
Expand Down Expand Up @@ -111,14 +110,12 @@ public AppiumDriver(AppiumLocalService service, ICapabilities appiumOptions, Tim

#region Public Methods

protected override async Task<Response> ExecuteAsync(string driverCommandToExecute, Dictionary<string, object> parameters) =>
await base.ExecuteAsync(driverCommandToExecute, parameters);

protected Response Execute(string driverCommandToExecute, Dictionary<string, object> parameters) =>
Task.Run(() => ExecuteAsync(driverCommandToExecute, parameters)).GetAwaiter().GetResult();
protected override Response Execute(string driverCommandToExecute, Dictionary<string, object> parameters) =>
base.Execute(driverCommandToExecute, parameters);

Response IExecuteMethod.Execute(string commandName, Dictionary<string, object> parameters) =>
Execute(commandName, parameters);
base.Execute(commandName, parameters);


#region Generic FindMethods

Expand Down Expand Up @@ -605,4 +602,4 @@ internal static ReadOnlyCollection<T> ConvertToExtendedWebElementCollection<T>(I

#endregion
}
}
}

0 comments on commit a4eeb3b

Please sign in to comment.