Forum Discussion

sudam_evonsys's avatar
sudam_evonsys
Occasional Contributor
1 year ago

Re: Access outlook email to click on button inside the email

Thanks Marsha_R and rraghvani for replying.

Yes, I have tried with recording steps to click on the button on given outlook email.

However captured element working only for someitme only. after that I need to re-capture same element.

 

I need to click on "Review Document" button on this email.

 

Captured Name Mapping as below.

 

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    I would guess that what is happening is that the page name (here it is page32770) is changing sometimes when the page is loaded. 

     

     

    Take a look at this information about wildcards. Using a wildcard with a suitable string will allow the field to be found even if part of its name changes. Try it out and let us know what happens.

    https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html

     

    • sudam_evonsys's avatar
      sudam_evonsys
      Occasional Contributor

      Hi Marsha_R ,

      I have tried after passing wild-card to page32770 and then the tool cannot find particular button and not peforming the click event. but when it was highlighted when I was trying to identify with the Highlight option in the tool

       

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        Is this your first time using TestComplete? I strongly suggest you read and understand how Object Identification and Name Mapping works. 

        Each of your mapped objects beneath Outlook, their property values may be changing. You need to identify these, and use wildcards appropriately (e.g. WndClass: Afx123*)

        Also, Outlook interprets the email, so that it can be easily read by the user. The button you see, may not be an actual button. Hence, TC may not identify it as a button.