I want a screenshot as soon as I enter the wrong password
namespace UITest.
{
[TestClass]
public class Firefox
{
[TestMethod]
public void AMDP()
{
Driver.Navigate().GoToUrl("https://Google.de");
Driver.Manage().Window.Maximize();
//Add Username
Thread.Sleep(waitingTime);
Driver.FindElement(SoeUser).SendKeys("TestUser");
// Add password
Thread.Sleep(waitingTime);
Driver.FindElement(SoePW).SendKeys("Testpw");
}
}
}
My code looks something like this