Skip to content

Commit 1d723de

Browse files
committed
[dotnet] no longer need to send OSS element
1 parent 13975e0 commit 1d723de

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

dotnet/src/webdriver/TargetLocator.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public IWebDriver Frame(IWebElement frameElement)
106106
throw new ArgumentException("frameElement cannot be converted to IWebElementReference", nameof(frameElement));
107107
}
108108

109-
// TODO: Remove "ELEMENT" addition when all remote ends are spec-compliant.
110109
Dictionary<string, object> elementDictionary = elementReference.ToDictionary();
111-
elementDictionary.Add("ELEMENT", elementReference.ObjectReferenceId);
112110

113111
Dictionary<string, object> parameters = new Dictionary<string, object>();
114112
parameters.Add("id", elementDictionary);

dotnet/src/webdriver/WebDriver.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ private static object ConvertObjectToJavaScriptObject(object arg)
845845
}
846846
else if (argAsObjectReference != null)
847847
{
848-
// TODO: Remove "ELEMENT" addition when all remote ends are spec-compliant.
849848
Dictionary<string, object> webDriverObjectReferenceDictionary = argAsObjectReference.ToDictionary();
850849
converted = webDriverObjectReferenceDictionary;
851850
}

0 commit comments

Comments
 (0)