fix precondition check for provided implementation
fix a problem where using a provided driver does not take screenshots
Merge pull request #121 from alvy54/master

fix a problem where using a provided driver does not take screenshots