Can you just find text without doing anything else?

Hi,

I want to locate text within my and that is it. I have used the 'Find Text' method but it seems to require an action. I just want to validate the text is within an image.

Any help would be appreciated

Thank you,
Joe

my code:
set subjectText to "Eggplant Test "& random(1,9999)
[couple of steps in between]
Click (Text:subjectText)

Comments

  • Hi All,

    I figured it out. Sorry for the spam.

    I used the ImageFound command.


    if ImageFound(Text:subjectText) then
    put "The Discussion submitted has been Recorded as Expected: " &subjectText
    else
    putput "The Discussion submitted has NOT been Recorded as Expected: " & subjectText
    end if


    Thank you,
    Joe
Sign In or Register to comment.