Skip to content

If using multiple browser drivers in a failing test, the logs might display the wrong browser for the last page visited #871

@mdmintz

Description

@mdmintz

If using multiple browser drivers in a failing test, the logs might display the wrong browser for the last page visited.

Example, let's say that I'm running tests using Chrome (default), but then I open up a new browser in the same test using self.get_new_driver(browser="firefox"), and then I perform an action that fails. In the logs where it says information about the point where the test failed, it would display chrome instead of firefox, even though Firefox was the last browser used before the test failed. To fix this, the logs should display the last browser used leading up to the failure.

To fix this, the self.browser variable might need to change whenever any of the following methods are called: self.get_new_driver(), self.switch_to_driver(), self.switch_to_default_driver().

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