Пример #1
0
 public void RemoteBrowserTypeError()
 {
     Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("remote"));
     Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("HEADLESSCHROME"));
     Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("PHANTOM"));
     Assert.ThrowsException <ArgumentException>(() => SeleniumConfig.GetRemoteBrowserType("OTHER"));
 }
Пример #2
0
 public void RemoteBrowserTypeMatch()
 {
     Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("INTERNET EXPLORER"));
     Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("INTERNETExPLOREr"));
     Assert.AreEqual(RemoteBrowserType.IE, SeleniumConfig.GetRemoteBrowserType("ie"));
     Assert.AreEqual(RemoteBrowserType.Firefox, SeleniumConfig.GetRemoteBrowserType("Firefox"));
     Assert.AreEqual(RemoteBrowserType.Chrome, SeleniumConfig.GetRemoteBrowserType("chrome"));
     Assert.AreEqual(RemoteBrowserType.Safari, SeleniumConfig.GetRemoteBrowserType("SAFARI"));
     Assert.AreEqual(RemoteBrowserType.Edge, SeleniumConfig.GetRemoteBrowserType("edge"));
 }