Skip to content

Conversation

@zahin178
Copy link
Contributor

PR Type

Bug Fix

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made.
  • Version number has been updated.
  • Required modules have been added to respective "requirements*.txt" files.
  • Relevant Test Cases added to this description (below).
  • (Team) Label with affected action categories and semver status.

Overview

In the case of running desktop actions got an error saying the image was not found locally

image_not_found

Investigated the issue and found that the program was not able to access the attached images. So I changed the code for Framework\Built_In_Automation\Shared_Resources\LocateElement.py

The previous code was

if sr.Test_Shared_Variables("file_attachment"):
        file_attachment = sr.Get_Shared_Variables("file_attachment")

Here there was no such key named "file_attachment" in BuiltInFunctionSharedResources. So changed it to the following

if sr.attachment_variables:
        file_attachment = sr.attachment_variables

Test Cases

@riz-hossain riz-hossain merged commit 975e3d2 into dev Nov 12, 2023
@riz-hossain riz-hossain deleted the desktop_automation_fixed branch November 12, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants