Exemplo n.º 1
0
        public void Download_Latest_Release()
        {
            var downloader = new ChromeDriverDownloader();
            var result     = downloader.DownloadBinary("LATEST_RELEASE");

            Assert.IsTrue(result);
            var exists = File.Exists(DriverFilepath);

            Assert.IsTrue(exists);
            exists = downloader.Binary.CheckBinaryExists();
            Assert.IsTrue(exists);
            Assert.IsNotNull(downloader.Binary.GetExistingBinaryVersion());
        }
Exemplo n.º 2
0
        public void Download_v29()
        {
            var          downloader    = new ChromeDriverDownloader();
            const string versionNumber = "2.9";
            var          result        = downloader.DownloadBinary(versionNumber);

            Assert.IsTrue(result);
            var exists = File.Exists(DriverFilepath);

            Assert.IsTrue(exists);
            exists = downloader.Binary.CheckBinaryExists();
            Assert.IsTrue(exists);
            Assert.AreEqual(versionNumber, downloader.Binary.GetExistingBinaryVersion());
        }