Skip to content

Commit

Permalink
Exposing command executor on .NET RemoteWebDriver via IHasCommandExec…
Browse files Browse the repository at this point in the history
…utor interface
  • Loading branch information
jimevans committed Dec 6, 2020
1 parent 449e0ff commit a530271
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions dotnet/src/webdriver/Remote/IHasCommandExecutor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// <copyright file="IHasCommandExecutor.cs" company="WebDriver Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>

namespace OpenQA.Selenium.Remote
{
public interface IHasCommandExecutor
{
public ICommandExecutor CommandExecutor { get; }
}
}
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/Remote/RemoteWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace OpenQA.Selenium.Remote
/// }
/// </code>
/// </example>
public class RemoteWebDriver : IWebDriver, ISearchContext, IJavaScriptExecutor, IFindsById, IFindsByClassName, IFindsByLinkText, IFindsByName, IFindsByTagName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector, IFindsElement, ITakesScreenshot, IHasCapabilities, IHasWebStorage, IHasLocationContext, IHasApplicationCache, IAllowsFileDetection, IHasSessionId, IActionExecutor
public class RemoteWebDriver : IWebDriver, ISearchContext, IJavaScriptExecutor, IFindsElement, ITakesScreenshot, IHasCapabilities, IActionExecutor, IHasCommandExecutor, IAllowsFileDetection, IHasSessionId, IHasWebStorage, IHasLocationContext, IHasApplicationCache, IFindsById, IFindsByClassName, IFindsByLinkText, IFindsByName, IFindsByTagName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector
{
/// <summary>
/// The default command timeout for HTTP requests in a RemoteWebDriver instance.
Expand Down Expand Up @@ -384,7 +384,7 @@ public bool IsActionExecutor
/// <summary>
/// Gets the <see cref="ICommandExecutor"/> which executes commands for this driver.
/// </summary>
protected ICommandExecutor CommandExecutor
public ICommandExecutor CommandExecutor
{
get { return this.executor; }
}
Expand Down

0 comments on commit a530271

Please sign in to comment.