Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing image text #248

Open
wants to merge 17 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# Modules #
# #
#########################
from Framework.Built_In_Automation.Database.BuiltInFunctions import sr

try:
import pyautogui as gui
except:
Expand Down Expand Up @@ -641,10 +643,13 @@ def check_for_element(data_set):

# Parse data set
try:
variable_name = None
file_name = ""
for row in data_set:
if row[1] == "element parameter":
file_name = row[2]
elif "action" in row[1]:
variable_name = row[2].strip()

if file_name == "":
CommonUtil.ExecLog(
Expand All @@ -671,9 +676,13 @@ def check_for_element(data_set):

if element in failed_tag_list:
CommonUtil.ExecLog(sModuleInfo, "Element not found", 3)
x = 'False'
sr.Set_Shared_Variables(variable_name, x)
return "zeuz_failed"
else:
CommonUtil.ExecLog(sModuleInfo, "Found element", 1)
x = 'True'
sr.Set_Shared_Variables(variable_name, x)
return "passed"

except Exception:
Expand Down
Loading