Here is a screenshot:
task : Codeception PHP Testing Framewor
In Java, I used below code and it got solved
DesiredCapabilities caps = new DesiredCapabilities(); Change - WebDriver driver = new PhantomJSDriver(caps); with - this.driver = new PhantomJSDriver(caps);