jeanphix / Ghost.py

Webkit based scriptable web browser for python.
http://ghost-py.readthedocs.org/en/latest/
2.77k stars 380 forks source link

ERROR:ghost:Frame: undefined(0): TypeError: 'undefined' is not a function #112

Open sranasir opened 11 years ago

sranasir commented 11 years ago

I am trying just to open a page and nothing else but this error keeps on coming. The parent domain opens up fine and works.

ERROR:ghost:Frame: undefined(0): TypeError: 'undefined' is not a function

The script so far in my document is just this.

from ghost import Ghost ghost = Ghost(wait_timeout = 60) ghost.open("http://www.phoenix.edu/programs/degree-programs/arts-and-sciences/associates/aacom.html")

boogheta commented 11 years ago

Il s'agit a priori d'erreurs d'exécution du javascript, qui n'empêchent nullement l'accès au contenu de la page. En ouvrant la console de Chrome sur cette page on peut voir effectivement que le javascript ne s'exécute pas correctement. Pas de conséquences donc a priori, juste de l'information. Mais je pense qu'il pourrait être utile de disposer d'un moyen de rendre silencieuses ces seules erreurs pour les exécutions de ghost.py en ligne de commande.

EvaSDK commented 8 years ago

This causes rendering problems on page like https://www.scaleway.com. I guess this is due to a problem in the order javascript scripts are loaded or something. The problem is that it "breaks" the javascript environment in that not all libraries are loaded and code execution does not complete the way a normal browser would do. Any advice on where to get started to fix this would be most welcomed.