[browsershots-factories] Problem
Johann C. Rocholl
johann at browsershots.org
Mon Sep 11 17:41:15 CEST 2006
On 9/11/06, André Kemmeren <andre at osxy.nl> wrote:
> No matching processes belonging to you were found
> 1 2 3 4
> Traceback (most recent call last):
> File "build/scripts-2.3/shotfactory", line 280, in ?
> _main()
> File "build/scripts-2.3/shotfactory", line 251, in _main
> challenge, options.password)
> File "build/scripts-2.3/shotfactory", line 105, in browsershot
> gui.start_browser(config, url)
> File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/shotfactory03/gui/darwin.py", line 83, in start_browser
> if self.ready_state():
> File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/shotfactory03/gui/darwin.py", line 99, in ready_state
> state = self.js("document.readyState")
> File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/shotfactory03/gui/darwin.py", line 60, in js
> except appscript.specifier.CommandError:
> AttributeError: 'module' object has no attribute 'specifier'
Hmm. I use JavaScript function call "document.readyState" to check if
the browser has finished loading the page. The 1 2 3 4 indicates that
it works because each of the numbers is for when the browser has
reported that it's ready. The current version of the shotfactory
checks this 20 times before it believes it.
It seems that this AppScript+JavaScript call fails sometimes. I think
I'll have to catch this error and ignore it. Hang on a minute, I'll
shout when the patch is in the Subversion repository.
J.
More information about the browsershots-factories
mailing list