What happened before the dinosaurs?

Predecessors to dinosaurs missed the race to fill habitats emptied when 9 out of 10 species disappeared during Earth's largest mass extinction 252 million years ago. Or did they?