I can't figure out whether it's a varistor or any other non polar capacitor. Please also suggest how to test it.
\$\begingroup\$
\$\endgroup\$
If it says "WP270M", then it's a thermistor; a Samsung PTC thermistor, 265V, 27Ω, 1.5A, to be precise. Exquisitely googleable.