Search code examples
jqueryseleniumfirefox-addonselenium-idesimplemodal

Selenium IDE and custom confirm() function conflict


I am using simple modal dialog by Eric Martin. And have defined a function e.g

function confirm(message, options) {....
  }

To customize all confirm dialogs. Its working nicely accross all the browsers.Except when I enable Selenium IDE ,my custom confirm dialog function fails to capture "options" parameters and firefox console echos like this:

options is undefined callback=options.callback;

Error When Selenium IDE is visible

enter image description here

Normal Behaviour When Selenium IDE is closed enter image description here

Please help me sort out this issue so I should able to run selenium tests.


Solution

  • current possible solution:

    It revealed to me that selenium IDE recorder is also overriding the various functions. Current possible quick way-out from this bug is to rename confirm() function and its references :(