I am testing a web application where some shapes (rectangles and squares) are drawn on a svg canvas. Once a few shapes a drawn, lets say 3 rectangles, I need to execute a javascript function to get the array containing the 3 rectangle objects from the web browser (google chrome).
I am able to execute the java script using the below code:
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.
Thanks
Manish