Lukan Pom uklid VSCode

This commit is contained in:
Lukáš Kaňka 2023-08-24 18:01:03 +02:00
parent 8c14e872ab
commit 187d46c64c
12 changed files with 11 additions and 4 deletions

View File

@ -53,10 +53,17 @@ namespace LukanPOM.PageObjects
Assert.AreEqual(expectedTitle, actualTitle);
return this;
}
public HomePage Screnshot()
{
string fileName = "example_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".png";
Screenshot screenshot = ((ITakesScreenshot)driver).GetScreenshot();
screenshot.SaveAsFile(@"C:\Users\lukas\Nextcloud\GitHub\.Net_C.Sharp_Test\LukanNUnitProject\LukanNUnitProject\Foto\" + fileName, ScreenshotImageFormat.Png);
return this;
}
public HomePage TestProsel()
{
Console.Write("Test prošel");
Console.WriteLine("Test prošel");
return this;
}

View File

@ -1 +1 @@
2038838343
953933157

View File

@ -1 +1 @@
522f0d163e35eed9582db35738b4b15520a680ec
92923a155e21ca4813613c0fdb76c81efc35edc7