Forum Discussion

rupali_sonawane's avatar
rupali_sonawane
Occasional Contributor
3 years ago

TypeError: OkDialog.clickOk is not a function

Today i got a weird error message as TypeError: OkDialog.clickOk is not a function when execution running.

 

Have anyone got this kind of error. My function looks like below

 

function OkCancelDialog_ClickOk()
{
this.oKButton.ClickButton();
}

 

Scripting Language : JavaScript

shankar_r 

3 Replies

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

    By the looks of it, your function is called OkCancelDialog_ClickOk() which is different to OkDialog.clickOk() ğŸ¤”

  • rupali_sonawane's avatar
    rupali_sonawane
    Occasional Contributor

    it just typo I renamed the object to okButton and  onClick event is expected after clicking  "ClickButton"