How could I make click(events) on the basis of cell position in spreadJs? I try something like:
sheet.setActiveCell(3,3);
sheet.cellClick();
and
sheet.getCell(3,3).cellClick();
But it's not working. Thanks in advance if any solution or advice.
What you would need to do is essentially create an instance of an action using selenium. For example, you could have a web driver open Chrome, and navigate to one of our samples like so:
Then calculate the x/y coordinates for the current page by using getCellRect and the offset of the SpreadJS host element:
Then you would move the mouse to the center position of a cell (in this case, cell D4):
And then finally click on that cell:
Let me know if that helps.
Regards,
Spread Team