@@ -800,13 +800,13 @@ internal IWebElement GetElementFromResponse(Response response)
800
800
// TODO: Remove this "if" logic once the spec is properly updated
801
801
// and remote-end implementations comply.
802
802
string id = string . Empty ;
803
- if ( elementDictionary . ContainsKey ( "ELEMENT " ) )
803
+ if ( elementDictionary . ContainsKey ( "element-6066-11e4-a52e-4f735466cecf " ) )
804
804
{
805
- id = ( string ) elementDictionary [ "ELEMENT " ] ;
805
+ id = ( string ) elementDictionary [ "element-6066-11e4-a52e-4f735466cecf " ] ;
806
806
}
807
- else if ( elementDictionary . ContainsKey ( "id " ) )
807
+ else if ( elementDictionary . ContainsKey ( "ELEMENT " ) )
808
808
{
809
- id = ( string ) elementDictionary [ "id " ] ;
809
+ id = ( string ) elementDictionary [ "ELEMENT " ] ;
810
810
}
811
811
812
812
element = this . CreateElement ( id ) ;
@@ -832,13 +832,13 @@ internal ReadOnlyCollection<IWebElement> GetElementsFromResponse(Response respon
832
832
// TODO: Remove this "if" logic once the spec is properly updated
833
833
// and remote-end implementations comply.
834
834
string id = string . Empty ;
835
- if ( elementDictionary . ContainsKey ( "ELEMENT " ) )
835
+ if ( elementDictionary . ContainsKey ( "element-6066-11e4-a52e-4f735466cecf " ) )
836
836
{
837
- id = ( string ) elementDictionary [ "ELEMENT " ] ;
837
+ id = ( string ) elementDictionary [ "element-6066-11e4-a52e-4f735466cecf " ] ;
838
838
}
839
- else if ( elementDictionary . ContainsKey ( "id " ) )
839
+ else if ( elementDictionary . ContainsKey ( "ELEMENT " ) )
840
840
{
841
- id = ( string ) elementDictionary [ "id " ] ;
841
+ id = ( string ) elementDictionary [ "ELEMENT " ] ;
842
842
}
843
843
844
844
RemoteWebElement element = this . CreateElement ( id ) ;
@@ -1036,7 +1036,7 @@ private static object ConvertObjectToJavaScriptObject(object arg)
1036
1036
// TODO: Remove addition of 'id' key when spec is changed.
1037
1037
Dictionary < string , object > elementDictionary = new Dictionary < string , object > ( ) ;
1038
1038
elementDictionary . Add ( "ELEMENT" , argAsElement . InternalElementId ) ;
1039
- elementDictionary . Add ( "id " , argAsElement . InternalElementId ) ;
1039
+ elementDictionary . Add ( "element-6066-11e4-a52e-4f735466cecf " , argAsElement . InternalElementId ) ;
1040
1040
converted = elementDictionary ;
1041
1041
}
1042
1042
else if ( argAsDictionary != null )
@@ -1183,16 +1183,15 @@ private object ParseJavaScriptReturnValue(object responseValue)
1183
1183
1184
1184
if ( resultAsDictionary != null )
1185
1185
{
1186
- if ( resultAsDictionary . ContainsKey ( "ELEMENT " ) )
1186
+ if ( resultAsDictionary . ContainsKey ( "element-6066-11e4-a52e-4f735466cecf " ) )
1187
1187
{
1188
- string id = ( string ) resultAsDictionary [ "ELEMENT " ] ;
1188
+ string id = ( string ) resultAsDictionary [ "element-6066-11e4-a52e-4f735466cecf " ] ;
1189
1189
RemoteWebElement element = this . CreateElement ( id ) ;
1190
1190
returnValue = element ;
1191
1191
}
1192
- else if ( resultAsDictionary . ContainsKey ( "id " ) )
1192
+ else if ( resultAsDictionary . ContainsKey ( "ELEMENT " ) )
1193
1193
{
1194
- // TODO: Remove addition of 'id' key when spec is changed.
1195
- string id = ( string ) resultAsDictionary [ "id" ] ;
1194
+ string id = ( string ) resultAsDictionary [ "ELEMENT" ] ;
1196
1195
RemoteWebElement element = this . CreateElement ( id ) ;
1197
1196
returnValue = element ;
1198
1197
}
0 commit comments