Some problem about continuous call JS #153

Open
jerryxing98 opened this Issue Feb 23, 2014 · 1 comment

Comments

Projects
None yet
1 participant

The code as follow:
from ghost import Ghost
import logging
url = 'http://service.bj.10086.cn/phone/jxhsimcard/gotone_list.html'
gh = Ghost(log_level = logging.DEBUG) # I can't get any debug information ????
gh.open(url) # success
gh.evaluate('onchangePage("4")',expect_loading = True) # return the timeout error
gh.evaluate('onchangePage("4")') #return the corrent result
gh.evaluate('onchangePage("5")') #return [None,[]] ,I don't know why it can't return the correct result?????

So how can I get the debug information in the console ?
and
how can I get the correct result when I continuous call JavaScript???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment