I'm using phantomJS driver to automate some tests. On the home page if I get a webElement and output the href I can copy it to a browser and the page opens but in the test when I do driver.get(loginLink.getAttribute("href")) it just stays on the same page.
It works fine on the live site but not on our internal staging site.
I've added caps.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
but I still can't open the login page. Please can anybody suggest what can be causing this?
Update: More testing I've found it's only https pages that wont load