I am automating login page for a bootstrap UI. I want to take a screenshot each time when Login button gets click in Chrome and IE browser after loading a full page. In Firefox its working properly, I can see a next page in the screenshot.
Below is my code:
[TestMethod]
public void LoginTestChrome(string userName, string pwd)
{
OpenBrowserChrome();
IWebElement username = driver.FindElement(By.Id("Label"));
username.SendKeys(userName);
IWebElement password = driver.FindElement(By.Id("Pwd"));
password.SendKeys(pwd);
driver.FindElement(By.Id("BtnLogin")).Click();
SaveScreenshot();
driver.Quit();
}
Can anyone solve my problem please?