Finishing the Html Element before testing