When a pawn reaches the eighth rank you will see the Promote to dialog displayed:

Please select the piece you wish to promote the pawn to. If you want to cancel the promotion move and take it back, click Cancel.