If you’re trying to test with selenium and splinter, and getting failed tests in phantomjs but the tests work in chrome or firefox, try these settings:
Service arguments
browser = Browser(‘phantomjs’, service_args=[‘–ignore-ssl-errors=true’, ‘–ssl-protocol=any’, ‘–webdriver-loglevel=DEBUG’])
Maximize the window
browser .driver.maximize_window()
Or set your window size
browser .driver.set_window_size(1024, 1024)