I am looking to be able to selectively turn on and off certain images. I've come across the following article:
PhantomJS how to skip download resource
I've also found this article which is very similar using python:
Selenium driven by PhantomJS/Python
I am presuming that I can do this via webdriver.ExecutePhantomJS(string script, params object[] args)
.
What I don't know is if I need to create some page object first via the Selenium PageFactory and then call this function? How would I turn it off again. An example of how to do this would be very helpful.