When I want to have automated browser function with selenium-webdriver
, I write at first with chrome driver
and then make it run with phantomjs
.
But sometimes the two browsers behave differently and the function fails to run with phantomjs
while selenium-webdriver
works fine.
Currently, to find out what is wrong I am struggling in command line. I wonder if there is a way to run phantomjs
with "head" so that I can see the problem at a glance. Or maybe is there way to make chrome
behave exactly like phantomjs
?
I'm aware of some web site are restricted to get information by headless server, I'd give up in that case.