2017-08-31 106 views
0

我想知道是否有人提示如何提交兩次?我可以驗證它是否提交表單,但我需要再次提交以下確認頁面。這可能嗎?機械化再次提交下一頁

br = mechanize.Browser() 
br.open("http://internal/test/stopservice.cfm") 
br.select_form(nr=0) 
br.form['Account_number'] = 'Enter your Name' 
br.form['Name_first_account'] = 'Enter your Title' 
br.form['Name_last_account'] = 'Enter your message' 

br.form['Address_House_Number_stop'] = 'Enter your message' 
br.form['Address_Direction_Prefix_stop'] = ['E'] 
br.form['Address_Street_stop'] = 'Enter your message' 
br.form['City_stop'] = 'Enter your message' 
br.form['State_stop'] = ['IL'] 
br.form['Zip_mail_stop'] = '60062' 
br.form['E_mail'] = '[email protected]' 
br.form['Requester_Type'] = ['Tenant'] 
br.form['confirm_email'] = 'Enter your message' 
br.form['Phone_Contact_1'] = '111' 
br.form['Phone_Contact_2'] = '555' 
br.form['phone_Contact_3'] = '9999' 
br.form['MM_stop'] = ['09'] 
br.form['DD_stop'] = ['22'] 
br.form['YYYY_stop'] = ['2017'] 
br.find_control("Turn_off_Gas").items[0].selected=True 
br.submit() 

回答

0

我想你可以這樣做:

​​3210