Closed kgress closed 4 years ago
I personally think we can remove the check for the desired capability TAKES_SCREENSHOT in this context. If a user wants to get the screenshot from the driver, they are going to be calling this method explicitly.
It would make sense, imo, if Scaffold was automatically providing a screen shot helper for failed testing. Since the current implementation doesn't have this, I think we're safe with removing the check.
Bug
ScreenshotRemoteDriver
is not able to take a screenshot because there is currently no way to setCapabilityType.TAKES_SCREENSHOT
(takesScreenshot) with theDesiredCapabilitiesConfigurationProperties
class.When the check is performed, it always comes back null.
Expected
Users should be able to get screenshots from the remote driver with the
CapabilityType.TAKES_SCREENSHOT
capability.