'Capture a screenshot of the current state of the page. Screenshots
are captured both locally (in ``cls.screenshots_path``) as well as
with Percy (when enabled).'

def snapshot(self, name):

    self.percy.snapshot(name=name)
    return self
