-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
- ImageRecognition class always points to specific folder, instead of using the one from configuration. This means that if
.set_screenshot_path("path/to")is set when creatingNewDriverobject, all screenshots will be saved in the specified directory, but ImageRecognition class (size()method in this case) will look inpath(__filename__)directory. - in
TestUIDriverget_dimensions()methodimage_nameis passed tosave_screenshot()but forImageRecognitionconstructortestui-image_nameis passed, therefore the screenshot won't be found byImageRecognitionclass (size()method) even if no screenshot path is set and default values are in use. - Lastly if no screenshot path is set then
save_screenshot()method will append/reports_screenshot/to the screenshot filename resulting in the screenshot being saved under "path/to/reports_screenshot/screenshot.png" where as whenImageRecognitionclass tries to read the screenshot it will look in "path/to/screenshot.png"
Metadata
Metadata
Assignees
Labels
No labels