コード例 #1
0
ファイル: Checkout.cs プロジェクト: nitikeshs58/Bookswagon
        public void TakeScreenshot()
        {
            TakeScreenshot ts = new TakeScreenshot();
            Screenshot     ss = ((ITakesScreenshot)driver).GetScreenshot();

            ss.SaveAsFile(@"C:\Users\Admin\source\repos\Bookswagon\Bookswagon\Screenshots\" + ts.TakesScreenshotWithDate() + ".png");
        }