1

I have a python script that uses PhantomJS with selenium webdriver to retrieve a page which works perfectly on Ubuntu, while on Mac OS X it does not get some javascript library correctly.

This is more evident on a stackoverflow webpage which has a dedicated message for it.

from selenium import webdriver
browser = webdriver.PhantomJS()
browser.get("https://stackoverflow.com")
browser.save_screenshot("so.png")

Ubuntu with PhantomJS 1.9.8:

PhantomJS on Ubuntu

Mac OS X with PhantomJS 2.0:

PhantomJS on Mac OS X

The two tests are performed on the same network and both the machines can open the webpage correctly when using a classical browser.

enrico.bacis
  • 30,497
  • 10
  • 86
  • 115

0 Answers0