applitools / eyes.selenium.python

Applitools Eyes SDK for Selenium Python WebDriver
Apache License 2.0
10 stars 9 forks source link

Compare against mockup image #44

Closed nunessf closed 5 years ago

nunessf commented 5 years ago

Currently, there's not a direct way to upload a mockup image (from your local files) as a baseline image, which I find it would be a useful feature. Could it be a feature to take into consideration?

eirenik0 commented 5 years ago

@nunessf actually, it's possible upload images with eyes-images SDK. It's not so handy as through dashboard but it possible. The possible code could be like:

from applitools.images import Eyes, Target

def upload_image_to_eyes(image_or_path, test_name):
    eyes = Eyes()
    eyes.open("images",  test_name)
    eyes.check("", Target.image(image_or_path))
    eyes.close(False)

Anyway, I've forwarded your feature request.

danielputerman commented 5 years ago

@nunessf @Infernion refers to the version available in the Python SDK 4 version. Its repo is: https://github.com/applitools/eyes.sdk.python , and the package is available as https://pypi.org/project/eyes-images/