You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
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 displaychrome
instead offirefox
, 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()
.The text was updated successfully, but these errors were encountered: