Fix visual tests that use the "sb" fixture (and more!)
- Fix log path issue with visual tests that use the
sb
fixture. - Handle a possible edge case with page loads.
- Make sure highlighting isn't blocked by pop-up alerts.
- Set
WAIT_FOR_RSC_ON_CLICKS
to beFalse
by default.
-- Tests will be faster, but you may need to manually callself.accept_alert()
orself.dismiss_alert()
because previously, waiting for thereadyState
of the page to be "complete" might have dismissed alerts automatically due to an existing WebDriver "feature" where callingself.execute_script("")
automatically closes pop-up alerts.