How were witches tried in the Salem witch trials?

Sometimes they would tie the accused witch to a boulder and drop them into water. If they floated, they were a witch and if they sunk they weren't. Of course either way they died.

This is only one of them.

EDIT:

The accused in Salem never underwent the traditional witch tests of Europe. The court would not allow it. The Salem witches were tried by a panel of judges that also served as jury. The evidence and witness testimony, the afflicted's accusations, were brought up and the accused had to defend themselves.