@@ -39,23 +39,22 @@ private void Run()
3939
4040
4141
42-
4342 //conf.SetApiKey("APPLITOOLS_API_KEY"); // Set the Applitools API KEY here or as an environment variable "APPLITOOLS_API_KEY"
4443 conf . SetTestName ( "C# VisualGrid demo" ) // Set test name
4544 . SetAppName ( "Demo app" ) ; // Set app name
4645
4746 // Add browsers with different viewports
4847 conf . AddBrowser ( 800 , 600 , BrowserType . CHROME ) ;
49- conf . AddBrowser ( 700 , 500 , BrowserType . CHROME ) ;
50- conf . AddBrowser ( 1200 , 800 , BrowserType . FIREFOX ) ;
51- conf . AddBrowser ( 1600 , 1200 , BrowserType . FIREFOX ) ;
48+ conf . AddBrowser ( 700 , 500 , BrowserType . FIREFOX ) ;
49+ conf . AddBrowser ( 1200 , 800 , BrowserType . IE_10 ) ;
50+ conf . AddBrowser ( 1600 , 1200 , BrowserType . IE_11 ) ;
51+ conf . AddBrowser ( 1024 , 768 , BrowserType . EDGE ) ;
5252
5353 // Add iPhone 4 device emulation in Portraig mode
5454 ChromeEmulationInfo iphone4 = new ChromeEmulationInfo ( DeviceName . iPhone_4 , ScreenOrientation . Portrait ) ;
5555 conf . AddDeviceEmulation ( iphone4 ) ;
5656
5757
58-
5958 // Set the configuration object to eyes
6059 eyes . SetConfiguration ( conf ) ;
6160
@@ -72,7 +71,7 @@ private void Run()
7271 // Close the browser
7372 webDriver . Quit ( ) ;
7473
75- eyes . Close ( ) ;
74+ eyes . Close ( throwEx : false ) ; // don't throw exceptions as this is a demo
7675 //Wait and collect all test results
7776 TestResultSummary allTestResults = runner . GetAllTestResults ( ) ;
7877 System . Console . WriteLine ( allTestResults ) ;
0 commit comments