After a thorough search for many days, I have come here seeking help.
We are currently using javascript + selenium (webdriverjs) in our setup.
Our goal is to pass data into the browser that is opened via selenium. Simply put, we want to be able to execute any type of javascript in the browser.
In java+selenium, there is the JavaScriptExecutor class that accomplishes this task. However, in javascript+selenium, I am unable to find anything similar to it.
I have tried experimenting with driver.executeJavaScript and driver.executeScript, but unfortunately, they do not seem to work.
Your assistance would be greatly appreciated.
Note: Protractor cannot be used in my project.