File tree Expand file tree Collapse file tree
CSF.Extensions.WebDriver/Factories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,14 @@ public WebDriverCreationOptions GetDriverConfiguration(IConfigurationSection con
2424 OptionsType = configuration . GetValue < string > ( nameof ( WebDriverCreationOptions . OptionsType ) ) ,
2525 GridUrl = configuration . GetValue < string > ( nameof ( WebDriverCreationOptions . GridUrl ) ) ,
2626 DriverFactoryType = configuration . GetValue < string > ( nameof ( WebDriverCreationOptions . DriverFactoryType ) ) ,
27- AddBrowserIdentification = configuration . GetValue < bool > ( nameof ( WebDriverCreationOptions . AddBrowserIdentification ) ) ,
28- AddBrowserQuirks = configuration . GetValue < bool > ( nameof ( WebDriverCreationOptions . AddBrowserQuirks ) ) ,
2927 } ;
3028
29+ if ( configuration . GetSection ( nameof ( WebDriverCreationOptions . AddBrowserIdentification ) ) . Exists ( ) )
30+ creationOptions . AddBrowserIdentification = configuration . GetValue < bool > ( nameof ( WebDriverCreationOptions . AddBrowserIdentification ) ) ;
31+
32+ if ( configuration . GetSection ( nameof ( WebDriverCreationOptions . AddBrowserQuirks ) ) . Exists ( ) )
33+ creationOptions . AddBrowserQuirks = configuration . GetValue < bool > ( nameof ( WebDriverCreationOptions . AddBrowserQuirks ) ) ;
34+
3135 if ( ! TryGetDriverType ( creationOptions , configuration , out var driverType ) )
3236 return null ;
3337
You can’t perform that action at this time.
0 commit comments