I added PhantomJS and Selenium to my C # console application, and I want to take a screenshot of the browser when it hits a specific item. The reason is that for some reason, when I use ChromeDriver, it works fine, but when I use PhantomJS, it doesn't work on multiple elements.
I think I need an introduction on how to take a screenshot in C # using phantomjs. I looked on the Internet and it looks like everyone is using java scripts for this. I have a problem: I don't know how to integrate java scripts into my C # application, and then use this with phantomJS to get a screenshot. If I can get some help on how to do this, it would be very nice.
TL; DR: I found http://code.tutsplus.com/tutorials/testing-javascript-with-phantomjs--net-28243 and this is what I want to do, but I don't know how to use javascript in my C # application.
javascript c # selenium phantomjs selenium-webdriver
Darthlemi
source share