我正在使用 Ghost.py 填写表格。提交表单后,我得到相同的页面。代码:
url_local = 'url'
gh = Ghost()
page, name = gh.create_page()
page.open(url_local, wait_onload_event=True)
page.wait_for_selector('#id_username')
page.set_field_value('#id_username', '1')
page.set_field_value('#id_password', '1')
page.capture_to("1.png")
page.fire_on('form', 'submit')
page.capture_to("2.png")
我怎样才能获得下一页?