Skip to content

Commit

Permalink
[dotnet] Restore removed RemoteWebElement class
Browse files Browse the repository at this point in the history
The RemoteWebElement class has been replaced by the WebElement base
class. This version of RemoteWebElement is simply a subclass that does
nothing but provide the existence of the class. All functionality is
provided by the base WebElement class. Downstream projects that have
element classes that subclass RemoteWebElement should update their code
to subclass WebElement instead. Users should not be using
RemoteWebElement or WebElement; they should be using the IWebElement
interface instead.
  • Loading branch information
jimevans committed Sep 21, 2021
1 parent 2a03bde commit 301132d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions dotnet/src/webdriver/Remote/RemoteWebElement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// <copyright file="RemoteWebElement.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>

using System;

namespace OpenQA.Selenium.Remote
{
/// <summary>
/// Dummy class as base class for remote web elements. Deprecated. Use WebElement instead.
/// </summary>
[Obsolete("Replaced for dependent projects with WebElement class. Users should be using the IWebElement interface.")]
public class RemoteWebElement : WebElement
{
public RemoteWebElement(WebDriver parentDriver, string id) : base(parentDriver, id)
{
}
}
}

0 comments on commit 301132d

Please sign in to comment.