How can delete (remove, clear) all value in selected column?

Tags: #<Tag:0x00007efc60259af0>

Hi,

I am tester. I want to cover the error that occured next case:

  1. select column by clicking on column header - in test I use command hot.selectColumns(hot.getSettings().columns.find(el => el.header == ‘colname’).position)

  2. delete values in selected column. By hand I just click delete button on keyboard and the error case occurs
    But I can realized it as a test script command. I try to apply send_keys method to selected column, hot, page. But nothing happens. And in this case, the deletion must be done immediately, and not in each cell in turn.

How can I do it? Anybody knows?

Thank you,
Ed.

Hi @galogenit

we do not have many resources on tests besides https://handsontable.com/docs/testing/ But I highly encourage you to check our own tests at https://github.com/handsontable/handsontable/tree/master/handsontable/test

Hello Aleksandra,

thank you for your reply.

1 Like