I have added PhantomJS and Selenium to my C# console app and I want to take a screenshot of the browser when it gets to a specific element. The reason is that when I use the ChromeDriver it works fine, but when I am using PhantomJS it fails on a few elements.
I guess I need an introduction on how to take a screenshot in C# using phantomjs. I have looked around on the internet and it looks like everyone is using java scripts to do this. The problem I am having is that I don't know how to integrate the java scripts into my C# app and then use that with phantomJS to get the screenshot. Help me on how to do it.