fix precondition check for provided implementation
fix a problem where using a provided driver does not take screenshots