Capture HtmlAnchor click Event

2 posts, 0 answers
  1. Sandeep S
    Sandeep S avatar
    10 posts
    Member since:
    Jan 2010

    Posted 04 Sep 2013 Link to this post

    I have the below code to logout of the application where Logout is HtmlAnchor element.
     
    MyPageManager.MyPage1.MyPageHeader.Logout.Click();
     
    I want to know if I can capture this click event.to do some additional operations after click. I am using this line in many of the test methods. If I am able to capture this click event I can do those additional operations in common place without having to modify each of the existing test method.

    Let me know if it is possible.Thanks
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 09 Sep 2013 Link to this post

    Hi Sandeep,

    Thank you for contacting us.

    Please elaborate a bit more on your scenario, what do you mean by capturing the click event.
    What exactly do you want to achieve. 

    Here is an article about javascript events.

    Hope to hear from you soon.

    Regards,
    Boyan Boev
    Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top