While conducting testing, I am interested in setting certain data dynamically using browser.executescript. For example:
var x;
browser.executeScript(function () {
var something = x;
});
However, it appears that 'x' is not within the scope of the function being executed. Is there a method for passing arguments that will be accessible in the inner scope?
Any assistance would be highly valued. C