Executing code in Immediate Javascript tab programmatically

workspace

#1

Hello.

How to send js codes to Immediate JS tab and executes it programmatically from Init script?

Imagining exec() method:
services.immediate.getImmediateTab(tabName).exec("console.log(\"Executed from Init script.\")")

Please help.

Greetings
mcuong


#2

I have solved it myself :smile: .
Something like this:

Thanks Cloud9 for the API.