
You will learn , how to create a new eclipse work space , along with , how to create a new maven project which will have all the directories created such as - scr/test/resources, src/test/java, src/main/java etc.
GitHub Framework link: https://github.com/AnilPatidar/VisualTestFramework
Understanding of the getDriver() method :
getDriver() method has just two lines of code as follows:
Line 1: System.setProperty("webdriver.chrome.driver", "/Users/anilpatidar/Downloads/chromedriver");
Line 2: return new ChromeDriver();
Line 1: Chrome does not work directly in selenium, it needs an EXE file (binary file) to work, and selenium uses to connect with the actual Chrome Driver. We need to let selenium know, where is that EXE file(binary file) kept in the system/machine (laptop/computer) so that selenium can pick that up and run.
so I have kept the EXE file in this path: Users/anilpatidar/Downloads/chromedriver , in your case, the path may differ, so you can set your machine path here.
Now the question should be, how to get this EXE file for chrome,
you can visit: https://chromedriver.chromium.org/downloads to download the EXE file.
Now first check your chrome browser version in your machine (laptop/computer),
Let's suppose if it is 86.0.4240.22, now search for this version on the above link, and download the EXE file based on your computer/laptop operating system.
you will see the following options :
chromedriver_linux64.zip
chromedriver_mac64.zip
chromedriver_win32.zip
now download one of the zip files, download win32 if you are using Windows operating system, download mac64 if you are using the MAC machine, or download Linux if you are using Linux operating system.
after downloading the zip file, unzip the file in the desired folder, now you have to get the full path of this directory/folder and set the path as below, instead of '/Users/anilpatidar/Downloads/chromedriver' , you have to set your machine path of chrome EXE.
System.setProperty("webdriver.chrome.driver", "/Users/anilpatidar/Downloads/chromedriver");
That's it.
Now coming to line 2: it is just simply creating an object of chrome browser, and initializing the session, if you have set the chrome EXE path in line 1 wrong, you test will fail at line 2.
In this course you will learn, the powerful Applitools Eyes SDK, the integration with Selenium and Appium tests,
Integration of Applitools Eyes SDK with your existing Selenium/Appium Scripts
Maven Installations along with adding up Selenium, Appium and Applitools dependencies
Real-Time Execution of Visual Test
Learn Visual Reports and other important features - What is Baseline, Viewport, Match Levels - Strict, Content etc.
Learn Classic Applitools Runner vs Ultra-fast Grid Runner
Advantage of Ultra-fast Grid Runner
Applitools Eyes
Increase coverage and reduce maintenance with Visual AI-powered functional and visual test automation.
Ultrafast Grid
The Next-generation of cross-browser and cross-device testing accelerates functional & visual testing by up to 30x.
Seamless Integration
The Applitools platform integrates with all modern test frameworks, source control, build servers, and collaboration tools.
Next generation test automation platform powered by Visual AI
Increase quality, accelerate delivery and reduce cost with the world’s most intelligent test automation platform
Applitools Eyes
Increase coverage and reduce maintenance with Visual AI powered functional and visual test automation.
Ultrafast Grid
Next generation of cross browser and cross device testing accelerates functional & visual testing by up to 30x.
Seamless Integration
The Applitools platform integrates with all modern test frameworks, source control, build servers, and collaboration tools.
VISUAL AI POWERED TEST AUTOMATION
Stable, Fast, and Efficient
Applitools Eyes is powered by Visual AI, the only AI powered computer vision that replicates the human eyes and brain to quickly spot functional and visual regressions. Tests infused with Visual AI are created 5.8x faster, run 3.8 more stable, and catch 45% more bugs vs traditional functional testing. In addition, tests powered by Visual AI can take advantage of the ultrafast speed and stability of the next generation of cross browser testing, our Ultrafast Test Cloud.