For example, the prosecuter in a criminal court might argue how bad the crime is that has been committed, but if this argument is taken as an argument to convict the suspect, it is a case of ignoratio elenchi - it does not prove what it should prove, namely that the suspect is guilty.
To prove an argument is ignoratio elenchi one needs to show that the conclusion the arguer proves is not the one he set out to prove.