Bucks County lawyer Kathryn Boockvar was confirmed as the winner of the Democratic Commonwealth Court primary on Wednesday following an automatic recount.

Boockvar beat Pittsburgh attorney Barbara Behrend Ernsberger by a margin of 0.3 percent, getting 311,732 votes to Ernsberger’s 309,680.