Forum Discussion

llgg716's avatar
llgg716
Occasional Contributor
5 years ago
Solved

addEventListener

Hi, all,

I am wondering how to use addEventListener in TestComplete v14.

The use case is:

Given a link/button displays on a fully loaded webpage

When I click that link/button

Then I should able to set the cookieA=''

 And the webpage should send request with cookieA=''

 

I failed to search one example how to use this addEventListener methord within TestComplete, though I see addEventListener method in On-Screen Action's specify method step. There is no documentation mentioned about this adEventListener method, there is no discussion about this method in Forum either. Can anyone help?

 

  • That method is part of the object, not added by TestComplete.  TestComplete exposes it and allows you to call it...but you'll need to contact your developers for assistance in using it in your automation.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    That method is part of the object, not added by TestComplete.  TestComplete exposes it and allows you to call it...but you'll need to contact your developers for assistance in using it in your automation.