View Single Post
Old 10-23-2013, 09:10 AM   #7
lucis_lupinum
Member
lucis_lupinum began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2013
Device: Kindle
I tried the javascript login, but it still doesn't seem to work

I put
Code:
use_javascript_to_login = True
in my code and also the procedure:

Code:
def javascript_login(self, browser, username, password):
	browser.visit('http://www.aachener-zeitung.de/')
	f = browser.select_form('form[name="login"]')
	f['login_loginname'] = username
	f['login_password'] = password
	browser.submit(timeout=120)
I thought I got it right, but it seems I am wrong.
I tried to adress the login box which appears when you click the button in the top-right corner (AZ)

I can't check if I am logged in because the submit().read() doesn't work here...
lucis_lupinum is offline   Reply With Quote