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
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 creating NewDriverobject, all screenshots will be saved in the specified directory, but ImageRecognition class (size() method in this case) will look in path(__filename__) directory.
in TestUIDriverget_dimensions() method image_name is passed to save_screenshot() but for ImageRecognition constructor testui-image_name is passed, therefore the screenshot won't be found by ImageRecognition class (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 when ImageRecognition class tries to read the screenshot it will look in "path/to/screenshot.png"
The text was updated successfully, but these errors were encountered:
.set_screenshot_path("path/to")
is set when creatingNewDriver
object, all screenshots will be saved in the specified directory, but ImageRecognition class (size()
method in this case) will look inpath(__filename__)
directory.TestUIDriver
get_dimensions()
methodimage_name
is passed tosave_screenshot()
but forImageRecognition
constructortestui-image_name
is passed, therefore the screenshot won't be found byImageRecognition
class (size()
method) even if no screenshot path is set and default values are in use.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 whenImageRecognition
class tries to read the screenshot it will look in "path/to/screenshot.png"The text was updated successfully, but these errors were encountered: