Advertisement
Guest User

Untitled

a guest
Jan 8th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. for cont in browser.form.controls:
  2. print("1%s" % cont.type)
  3. if cont.type == 'password':
  4. print("2%s" % cont.type)
  5. cont.value = 'test'
  6. print("2password = %s" % cont.type)
  7. if (cont.type is "text"):
  8. cont.value = 'test'
  9. print("3%s" % cont.type)
  10. print("3username = %s" % cont.type)
  11. browser.submit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement