You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users can make use of the boundingBox feature by providing a selector to `verifyMisMatchPercentage` function, it will internally
79
-
check if a locator is provided, fetch it's bounding-box and compare only that element on both the images.
69
+
> Note:
70
+
`seeVisualDiffForElement` only works when the page for baseImage is open in the browser, so that webdriver can fetch coordinates of the provided selector
71
+
72
+
80
73
81
74
Finally to use the helper in your test, you can write something like this:
82
75
@@ -85,17 +78,21 @@ Feature('to verify monitoried Remote Db instances');
85
78
86
79
Scenario('Open the System Overview Dashboard', async (I, adminPage, loginPage) => {
* Check Visual Difference for Base and Screenshot Image
78
84
* @param baseImage Name of the Base Image (Base Image path is taken from Configuration)
79
-
* @param screenShotImage Name of the screenshot Image (Screenshot Image Path is taken from Configuration)
80
-
* @param diffImageName Name of the Diff Image which will be saved after comparison (Diff Image path is taken from Configuration)
81
-
* @param tolerance Tolerance Percentage, default value 10
82
-
* @param prepareBase True | False, depending on the requirement if the base images are missing
83
-
* @param selector If set, passed selector will be used to fetch Bouding Box and compared on two images
84
-
* @param options Resemble JS Options, read more here: https://github.com/rsmbl/Resemble.js
85
+
* @param options Options ex {prepareBaseImage: true, tolerance: 5} along with Resemble JS Options, read more here: https://github.com/rsmbl/Resemble.js
* @param selector Selector which has to be compared expects these -> CSS|XPath|ID
109
+
* @param baseImage Base Image for comparison
110
+
* @param options Options ex {prepareBaseImage: true, tolerance: 5} along with Resemble JS Options, read more here: https://github.com/rsmbl/Resemble.js
0 commit comments