Guest User

Untitled

a guest
Dec 6th, 2017
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. F
  2. test_modify_contact.py:4 (test_modify_contact_first_name)
  3. app = <fixture.application.Application object at 0x032B7030>
  4.  
  5. def test_modify_contact_first_name(app):
  6. app.session.login(username="admin", password="secret")
  7. > app.contact.modify_first_contact(Contact(first_name="New first name"))
  8.  
  9. test_modify_contact.py:7:
  10. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  11. ..\fixture\contact.py:73: in modify_first_contact
  12. self.fill_contact_form(new_contact_data)
  13. ..\fixture\contact.py:19: in fill_contact_form
  14. self.add_avatar(contact)
  15. ..\fixture\contact.py:57: in add_avatar
  16. wd.find_element_by_name("photo").send_keys(contact.avatar)
  17. ..\env\lib\site-packages\selenium\webdriver\remote\webelement.py:351: in send_keys
  18. {'text': "".join(keys_to_typing(value)),
  19. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  20.  
  21. value = (None,)
  22.  
  23. def keys_to_typing(value):
  24. """Processes the values that will be typed in the element."""
  25. typing = []
  26. for val in value:
  27. if isinstance(val, Keys):
  28. typing.append(val)
  29. elif isinstance(val, int):
  30. val = str(val)
  31. for i in range(len(val)):
  32. typing.append(val[i])
  33. else:
  34. > for i in range(len(val)):
  35. E TypeError: object of type 'NoneType' has no len()
  36.  
  37. ..\env\lib\site-packages\selenium\webdriver\common\utils.py:150: TypeError
Add Comment
Please, Sign In to add comment