your problem actually isn’t the null argument. What’s happening is that findTestData('JavaScriptHelper') is returning null. Please make sure that you have a data file at the location you’ve specified.
Also, I don’t understand your use of the WebUI.executeJavaScript() method here… Usually you use this method to do exactly that; execute some JS code, for example:
as JS code doesn’t make any sense. Unless the value you are expecting to be returned by getValue(1, 1) is a JS code snippet, which is fine, if not a little odd…
If your just trying to get the value from a data file just follow this instead of using js. Not sure why you are even attempting to use JS
//get data
def data = findTestData('Data Files/DB Data')
// Get specific data (column, row) as a variable
String record = data.getValue(3, 4)
//print my variable
println record
I know what happen.
I write case (in data file stored JS code snippet) I need this.
I see that Execute JS need arguments, but I don’t have them, I read docs, and see that i need to write like this