alert

Description

This extension adds command 'alert' that pops-up a alert message with a given parameter.This helps a lot in script debuging.

Code to add to the user-extensions:

user-extensions.js
 
Selenium.prototype.doDisplayAlert = function(value, varName) {
    alert(value);
};

Example:

storeEval 1 + 2 result
alert ${result}  

Note:

'echo' is a similar command which allows writing debuging information to log file. But it does not work for Selenium IDE as I saw.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jun 12, 2007

    dhwang says:

    Alert is intrusive I think.. wouldn't it be better to send the message to the LO...

    Alert is intrusive I think.. wouldn't it be better to send the message to the LOG window. Something like:

    Selenium.prototype.doLogDebug = function(value, varName) {
    LOG.debug("DEBUG: " + value);
    }

    storeEval 1 + 2 result
    logDebug ${result}