File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public virtual string TagName
7979
8080 Response commandResponse = this . Execute ( DriverCommand . GetElementTagName , parameters ) ;
8181
82- if ( commandResponse . Value is not Dictionary < string , object ? > rawSize )
82+ if ( commandResponse . Value is null )
8383 {
8484 throw new WebDriverException ( $ "GetElementTagName command was successful, but response was not an object: { commandResponse . Value } ") ;
8585 }
@@ -101,7 +101,7 @@ public virtual string Text
101101
102102 Response commandResponse = this . Execute ( DriverCommand . GetElementText , parameters ) ;
103103
104- if ( commandResponse . Value is not Dictionary < string , object ? > rawSize )
104+ if ( commandResponse . Value is null )
105105 {
106106 throw new WebDriverException ( $ "GetElementText command was successful, but response was not an object: { commandResponse . Value } ") ;
107107 }
You can’t perform that action at this time.
0 commit comments