@@ -107,7 +107,7 @@ public virtual bool Enabled
107
107
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
108
108
parameters . Add ( "id" , this . elementId ) ;
109
109
Response commandResponse = this . Execute ( DriverCommand . IsElementEnabled , parameters ) ;
110
- return ( bool ) commandResponse . Value ;
110
+ return ( bool ) Convert . ChangeType ( commandResponse . Value , typeof ( bool ) ) ;
111
111
}
112
112
}
113
113
@@ -124,7 +124,7 @@ public virtual bool Selected
124
124
Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
125
125
parameters . Add ( "id" , this . elementId ) ;
126
126
Response commandResponse = this . Execute ( DriverCommand . IsElementSelected , parameters ) ;
127
- return ( bool ) commandResponse . Value ;
127
+ return ( bool ) Convert . ChangeType ( commandResponse . Value , typeof ( bool ) ) ;
128
128
}
129
129
}
130
130
@@ -185,7 +185,7 @@ public virtual bool Displayed
185
185
parameters . Add ( "args" , new object [ ] { this . ToElementReference ( ) . ToDictionary ( ) } ) ;
186
186
commandResponse = this . Execute ( DriverCommand . ExecuteScript , parameters ) ;
187
187
188
- return ( bool ) commandResponse . Value ;
188
+ return ( bool ) Convert . ChangeType ( commandResponse . Value , typeof ( bool ) ) ;
189
189
}
190
190
}
191
191
0 commit comments