Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- F
- test_modify_contact.py:4 (test_modify_contact_first_name)
- app = <fixture.application.Application object at 0x032B7030>
- def test_modify_contact_first_name(app):
- app.session.login(username="admin", password="secret")
- > app.contact.modify_first_contact(Contact(first_name="New first name"))
- test_modify_contact.py:7:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ..\fixture\contact.py:73: in modify_first_contact
- self.fill_contact_form(new_contact_data)
- ..\fixture\contact.py:19: in fill_contact_form
- self.add_avatar(contact)
- ..\fixture\contact.py:57: in add_avatar
- wd.find_element_by_name("photo").send_keys(contact.avatar)
- ..\env\lib\site-packages\selenium\webdriver\remote\webelement.py:351: in send_keys
- {'text': "".join(keys_to_typing(value)),
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- value = (None,)
- def keys_to_typing(value):
- """Processes the values that will be typed in the element."""
- typing = []
- for val in value:
- if isinstance(val, Keys):
- typing.append(val)
- elif isinstance(val, int):
- val = str(val)
- for i in range(len(val)):
- typing.append(val[i])
- else:
- > for i in range(len(val)):
- E TypeError: object of type 'NoneType' has no len()
- ..\env\lib\site-packages\selenium\webdriver\common\utils.py:150: TypeError
Add Comment
Please, Sign In to add comment