Posted 2 April 2018, 1:23 am EST
Hello
Need urgent help on how to do automated testing in spreadjs Using protractor .
since spread.js uses canvas ,i am unable to use css selector. Please give suggestions
Forums Home / Spread / SpreadJS
Posted by: Shalini89garg on 2 April 2018, 1:23 am EST
Posted 2 April 2018, 1:23 am EST
Hello
Need urgent help on how to do automated testing in spreadjs Using protractor .
since spread.js uses canvas ,i am unable to use css selector. Please give suggestions
Posted 2 April 2018, 10:06 am EST
Hello,
I am not much familiar with protractor however to get the SpreadJS instance you can use something like:
var spread = new GC.Spread.Sheets.Workbook(document.getElementById(“ss”));
You can also use findControl() method to get an existing instance as shown here:
var spread = GC.Spread.Sheets.findControl(document.getElementById(“ss”));
Thanks,
Deepak Sharma