A lot of people mistake the ExecuteJS block for a builtin js interpreter.
That block, being on the bottom part of the
Add Blockwindow, belongs to the set of blocks that control a Selenium-driven browser.
Jintyou can do it like this:
NOTE: only the variables with legal names according to the js standard are declared (variables must not start with a number, must not contain spaces etc.)
The variables you extract using
END SCRIPT -> VARS "a,b"will be initialized and declared in the OpenBullet scope, so you can have a full 2-way communication vector between OpenBullet and Jint.
If you want to read more about this you can open the LoliScript documentation
Begin (end) Script
Bonus: You can also use another scripting language, IronPython, which allows you to work with .NET assemblies using a pythonic syntax.
Shurijo last edited by Ruri
Will this work in order to get the alerts text? And how can I use the variable?
Hey, in order to talk to the browser when using selenium you have to use the EXECUTEJS block.