Genetic testing

Which genetic testing that they do at the OB detects the gender?