+2 votes
hi team,

strJSScript = "$(function () {var data = $('WeightWorkSheetGrid').wijgrid('data');data[4][2] = 122; $('#WeightWorkSheetGrid').wijgrid('ensureControl', true);});"

Window("Clinical Page").InvokeJavaScript(strJSScript)

Giving below error

an error occurred javascript was invoked: unable to set property "2" of undefined or null reference

please do need full
asked Jul 25, 2016 in QA Wizard Pro by Deepthi

1 Answer

+1 vote
That is a JavaScript error indicating that the object you are trying to reference does not exist.

I would run the JavaScript in the web page first to validate it and then use it in your QAW script.
answered Jul 29, 2016 by nico (8,200 points)
248 questions
262 answers
106 comments
2,047 users