This technique was in widespread use until 1948 , when the major national polls based on this technique all predicted that Republican Thomas E. Dewey would defeat incumbent Democrat Harry S. Truman .
The technique was first used in the late 19th century .