File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class ResembleHelper extends Helper {
109109 }
110110
111111 options . boundingBox = await this . _getBoundingBox ( selector ) ;
112- var misMatch = await this . _fetchMisMatchPercentage ( baseImage , options ) ;
112+ const misMatch = await this . _fetchMisMatchPercentage ( baseImage , options ) ;
113113 this . debug ( "MisMatch Percentage Calculated is " + misMatch ) ;
114114 assert ( misMatch <= options . tolerance , "MissMatch Percentage " + misMatch ) ;
115115 }
@@ -120,7 +120,7 @@ class ResembleHelper extends Helper {
120120 * @param screenShotImage Name of the screenshot Image (Screenshot Image Path is taken from Configuration)
121121 */
122122 async _prepareBaseImage ( screenShotImage ) {
123- var configuration = this . config ;
123+ const configuration = this . config ;
124124
125125 await this . _createDir ( configuration . baseFolder + screenShotImage ) ;
126126
@@ -177,8 +177,8 @@ class ResembleHelper extends Helper {
177177 }
178178
179179 if ( this . helpers [ 'WebDriverIO' ] ) {
180- location = await browser . getLocation ( selector ) ;
181- size = await browser . getElementSize ( selector ) ;
180+ location = await helper . browser . getLocation ( selector ) ;
181+ size = await helper . browser . getElementSize ( selector ) ;
182182 }
183183
184184 const bottom = size . height + location . y ;
You can’t perform that action at this time.
0 commit comments