Skip to content

Commit 301132d

Browse files
committed
[dotnet] Restore removed RemoteWebElement class
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.
1 parent 2a03bde commit 301132d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// <copyright file="RemoteWebElement.cs" company="WebDriver Committers">
2+
// Licensed to the Software Freedom Conservancy (SFC) under one
3+
// or more contributor license agreements. See the NOTICE file
4+
// distributed with this work for additional information
5+
// regarding copyright ownership. The SFC licenses this file
6+
// to you under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
// </copyright>
18+
19+
using System;
20+
21+
namespace OpenQA.Selenium.Remote
22+
{
23+
/// <summary>
24+
/// Dummy class as base class for remote web elements. Deprecated. Use WebElement instead.
25+
/// </summary>
26+
[Obsolete("Replaced for dependent projects with WebElement class. Users should be using the IWebElement interface.")]
27+
public class RemoteWebElement : WebElement
28+
{
29+
public RemoteWebElement(WebDriver parentDriver, string id) : base(parentDriver, id)
30+
{
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)