I am able to execute the java script using the below code:
This should, theoretically, return an array with the HTML properties for the rectangles. But I get ab object of type System.String with the value [Object.Object] which is the return type of ExcuteScript() command.
Code: Select all
WebDocument webDocument = "/dom[@pageurl='URL']"; var returnValue = webDocument.ExecuteScript("return GetWalls();");
I understand that I need to somehow cast this wrapped value to Array. Any help would be appreciated.