Actually in both of those two situations a draw must be claimed. The only draw which will be done automatically by the system here is stalemate.
At any point in the game, click on the 'offer draw' link at the side of the board. Tick the checkbox and make your move. Your opponent can either reject it and move normally, or click on a new (and obvious) link, which appears beside their board, in order to agree to it.