Beispiel #1
0
 public IBrowser Start()
 {
     try
     {
         return(BrowserFactory.Get(GetBrowserType()));
     }
     catch (Exception ex)
     {
         throw new Exception($"Driver Coud not be launched. {ex}");
     }
 }
Beispiel #2
0
 public IBrowser GetCurrentDriver()
 {
     try
     {
         return(BrowserFactory.Get(GetBrowserType()));
     }
     catch (Exception ex)
     {
         throw new Exception($"Browser is not avialbl. {ex}");
     }
 }