Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


submit[AndWait] erroring in Selenium IDE v1.0b2

submit[AndWait] erroring in Selenium IDE v1.0b2

submit[AndWait] erroring in Selenium IDE v1.0b2


If you are running the Selenium IDE v1.0b2, you may be experiencing problems with the submit or submitAndWait commands.

This is a known bug that has been outstanding since June 2008: http://jira.openqa.org/browse/SIDE-237

The symptoms are that you recieve an error in the IDE when running submit or submitAndWait:


[error] Unexpected Exception: QueryInterface -> function QueryInterface() { [native code] }, message -> Component is not available, result -> 2147746065, name -> NS_ERROR_NOT_AVAILABLE, filename -> chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js, lineNumber -> 1635, columnNumber -> 0, location -> JS frame :: chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js :: anonymous :: line 1635, inner -> null, data -> null, initialize -> function initialize() { [native code] }

While it's not a 100% perfect solution, because it won't take into account any onsubmit handlers, a fairly quick substitute is to add the following custom action:


Selenium.prototype.doSubmitForm = function(locator) {
    var frmEl = this.page().findElement(locator);
    if (frmEl && frmEl.tagName.toLowerCase() == 'form') {
    } else {
        Assert.fail('Unable to find form with locator: ' + locator);

and then replace all occurrences of 'submit' with 'submitForm' and 'submitAndWait' with 'submitFormAndWait'.

Hope this helps,


Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch: http://www.codecouch.com/dan/

Code Couch Tech Snippets & Info: http://www.codecouch.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close