1

I am trying to log messages to Selenium RC's log through Javascript. For example

seleniumRc.log('Statement');

Is it possible?

Thanks! DashK

2 Answers 2

3

FYI, in Selenium IDE 1.3.0, the Selenium object has a doEcho function, which is very useful. It also writes to the Selenium IDE log.

If you ever find yourself writing a User extension, the following syntax can be used:

Selenium.prototype.getSomething = function(location,text) {
    this.doEcho(text);
    return "Something";
}
Sign up to request clarification or add additional context in comments.

Comments

1

I'd use Selenium's internal logger. The only question is where the LOG object is located, but I think it's on the "selenium" object. Try selenium.LOG.info('blah blah blah'), or perhaps window.top.LOG.info('blah blah blah').

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.