ImageFound search target type.

Couldn't find a similar post so: I'm writing a common library search function to call ImageFound without specifying the type - ImageName: or Text:, but not having much success. Is it possible to call ImageFound within the function using a passed param without specifying the type?

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    You would have to pass the type as well as the string/name. Or you could try looking for both with code like this:
    function elementFound myParam
        set found to false
        try to put imageFound(text:myParam) into found // search for the text
        if not found then
               try to put imageFound(myParam) into found // search for the image
        end if
        return found
    end elementFound
    
Sign In or Register to comment.