Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created November 22, 2021 21:19
Show Gist options
  • Save dannyshain/a6f57aee48203f77b7db8e6add7dade2 to your computer and use it in GitHub Desktop.
Save dannyshain/a6f57aee48203f77b7db8e6add7dade2 to your computer and use it in GitHub Desktop.
*** Settings ***
Library SeleniumLibrary
Library EyesLibrary
*** Variables ***
${useCheckWindow}= ${True}
*** Test Cases ***
Compare Eyes Check Window versus Eyes Check
Open Browser https://applitools.github.io/demo Chrome
Eyes Open
IF ${useCheckWindow}
Log To Console \n.. using `Eyes Check Window`
Eyes Check Window Login - Check Window Fully
ELSE
Log To Console \n.. using `Eyes Check .. Target`
# An equivalent visual check using the generic target
Eyes Check Target Window Fully With Name Login - Check Target
END
Eyes Close Async
Close All Browsers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment