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 {
109
109
}
110
110
111
111
options . boundingBox = await this . _getBoundingBox ( selector ) ;
112
- var misMatch = await this . _fetchMisMatchPercentage ( baseImage , options ) ;
112
+ const misMatch = await this . _fetchMisMatchPercentage ( baseImage , options ) ;
113
113
this . debug ( "MisMatch Percentage Calculated is " + misMatch ) ;
114
114
assert ( misMatch <= options . tolerance , "MissMatch Percentage " + misMatch ) ;
115
115
}
@@ -120,7 +120,7 @@ class ResembleHelper extends Helper {
120
120
* @param screenShotImage Name of the screenshot Image (Screenshot Image Path is taken from Configuration)
121
121
*/
122
122
async _prepareBaseImage ( screenShotImage ) {
123
- var configuration = this . config ;
123
+ const configuration = this . config ;
124
124
125
125
await this . _createDir ( configuration . baseFolder + screenShotImage ) ;
126
126
@@ -177,8 +177,8 @@ class ResembleHelper extends Helper {
177
177
}
178
178
179
179
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 ) ;
182
182
}
183
183
184
184
const bottom = size . height + location . y ;
You can’t perform that action at this time.
0 commit comments