Skip to content

Wrong screenshots destination when using sb fixture #1660

@casatir

Description

@casatir

Hi there!
Thanks for this amazing project : I discovered it few weeks ago and after converting our test base we get highly reproducible and stable tests! Great!

Just to report what looks like a bug: when you call sb.save_screenshot_to_logs() with the sb fixture, picture always goes to latest_logs/seleniumbase.plugins.pytest_plugin.BaseClass.base_method/.

When using the --screenshot option (even with the sbfixture) picture correctly goes to latest_logs/<test-specific-path>/.

I just investigate a bit and it seems the __get_test_id() method in BaseCase does not return the correct id in this case...

Thanks

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions