How to create a log file using selenium webdriver? I had created a log file using selenium RC. IN selenium RC I had created an HTML log file with screenshots and error messages. I used the following code in selenium RC.
`selenium.CaptureEntirePageScreenshot(screenShotDirectory + “\” + “wrong username and password.png”,””);
string path = “Screenshot\wrong username and password.png”;
Sw.WriteLine(“Wrong username and password
“);
`
How can I create same HTML log file using selenium Webdriver? What code in C# should i write?
Thanks.
In the .NET bindings, you’ll want something like the following: