After whole lot of search for many days I am asking for help here.
We have a setup where we are using javascript + selenium(webdriverjs).
We want to pass data in the browser which is opened via selenium. putting it simply, we want to execute any kind of javascript in the browser.
In java+selenium, we have JavaScriptExecutor class which does this thing. In javascript+selenium I am not able to find any thing similar to it.
I have experimented with driver.executeJavaScript and driver.executeScript. But that does not work.
Please help.
Note: I can't use protractor in my project.