Forum Discussion

rupali_sonawane's avatar
New Contributor
2 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()


Scripting Language : JavaScript


3 Replies

  • rraghvani's avatar
    Champion Level 3

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

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