I am automating some website tests by Selenium, one step needs to resize the column width (reduce the column width) of tables, (the table looks like excel table as example).

How could I automate it?

From stackoverflow, for similar questions, some one advised to use Action e.g

```
action.clickAndHold(elementToResize).moveByOffset(xOffset, yOffset).release() 

```

But, how to locate the element to resize by css (The element to resize is the edge of column) if I use mouse in UI?

Or should I use executeScript? If so, anyone could give me one example?

Thanks in advance