Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to get last_screenshot from shared browser if element with custom config failed #225

Closed
boryskrutskykh opened this issue Sep 10, 2020 · 0 comments

Comments

@boryskrutskykh
Copy link

boryskrutskykh commented Sep 10, 2020

    @step
    def click_go_to_button(self):
        self.go_btn.with_(timeout=1).should(be.not_.visible)
def pytest_exception_interact():
    with allure.step('Screenshot'):
        last_screenshot = browser.config.last_screenshot
        allure.attach.file(
            name='screenshot',
            source=last_screenshot,
            attachment_type=allure.attachment_type.PNG
        )
Error:
INTERNALERROR> TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Error reproduced when try attach allure screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant