I'm using ChromeDriver to run an exported NW.js executable, which looks like it'll only let me execute JavaScript in the DOM context.
Is it possible to add a listener to the worker, which would listen for a string to be eval
'd or used in a function()
constructor, coming from the DOM?
I see the PostToRuntime
method in the DomHandler interface, will that work for something like this?
My end goal is to make a method like
getFromWorker("runtime.objects.sprite.getFirstInstance().opacity")
which when executed in the DOM, would return 100.