I am using Conductor to control PhantomJS via Selenium/Webdriver. PhantomJS has a function evaluateJavascript.
Is it possible to execute Javascript in the context of a page with Conductor? If so, how?
I am using Conductor to control PhantomJS via Selenium/Webdriver. PhantomJS has a function evaluateJavascript.
Is it possible to execute Javascript in the context of a page with Conductor? If so, how?
Copyright © 2021 Jogjafile Inc.
I have not tried it, but I came across a similar problem with HtmlUnit.
I solved it by checking out the conductor framework GitHub project and I modified the Locomotive constructor to get the WebClient from the WebDriver. So you could try to cast the WebDriver to PhantomJSDriver and then access the internal methods like "executeScript", "executePhantomJS":