Use "by mistake" in a sentence

1. So, I understand that you actually discovered this element by mistake. ( SIGHS )

Alors, je comprends que vous avez découvert cet élément par erreur.