Webdriver - INTERNALERROR> TypeError: must be convertible to a buffer, not NoSuchElementException

webdriver
python
Теги: #<Tag:0x00007fedba9b7148> #<Tag:0x00007fedba9b6f40>

(Bolatbek) #1

Никто не сталкивался с этой ошибкой?

INTERNALERROR> TypeError: must be convertible to a buffer, not NoSuchElementException

Полностью лог:

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\main.py”, line 94, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\main.py”, line 125, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 724, in call
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 333, in
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\main.py”, line 150, in pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 724, in call
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 333, in
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 595, in execute
INTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 253, in _wrapped_call
INTERNALERROR> return call_outcome.get_result()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 279, in get_result
INTERNALERROR> _reraise(*ex) # noqa
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 264, in init
INTERNALERROR> self.result = func()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 595, in execute
INTERNALERROR> return _wrapped_call(hook_impl.function(*args), self.execute)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 253, in _wrapped_call
INTERNALERROR> return call_outcome.get_result()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 279, in get_result
INTERNALERROR> _reraise(*ex) # noqa
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 264, in init
INTERNALERROR> self.result = func()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\runner.py”, line 66, in pytest_runtest_protocol
INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\runner.py”, line 78, in runtestprotocol
INTERNALERROR> nextitem=nextitem))
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\runner.py”, line 124, in call_and_report
INTERNALERROR> hook.pytest_runtest_logreport(report=report)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 724, in call
INTERNALERROR> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 338, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 333, in
INTERNALERROR> _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR> File “c:\python27\lib\site-packages_pytest\vendored_packages\pluggy.py”, line 596, in execute
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File “c:\python27\lib\site-packages\allure\pytest_plugin.py”, line 508, in pytest_runtest_logreport
INTERNALERROR> self.write_attach(a)
INTERNALERROR> File “c:\python27\lib\site-packages\allure\pytest_plugin.py”, line 498, in write_attach
INTERNALERROR> attachment.source = self.impl._save_attach(attachment.source, attachment.type)
INTERNALERROR> File “c:\python27\lib\site-packages\allure\common.py”, line 213, in _save_attach
INTERNALERROR> f.write(body)
INTERNALERROR> TypeError: must be convertible to a buffer, not NoSuchElementException


(Bolatbek) #2

Причину нашел.


(Aleksandr Jashhuk) #3

Молодец.
А если бы рассказал про причину, то был бы дважды молодец :slight_smile: