How are Ph levels of a swimming pool tested?

Usually the ph is tested with a phenol red indicator but litmus paper can be used