Her 2017 run for the Virginia House of Delegates ended in heartbreak, with her losing a random-chance draw out of a bowl after she tied her opponent with 11,607 votes apiece.

This time, there was little drama for Shelly Simonds.

Ms. Simonds, a Democrat, handily won her seat in Virginia’s 94th District on Tuesday, flipping the seat of David Yancey, the Republican incumbent whose name was chosen out of the bowl, by a tally of 58 percent to 40 percent. Her victory contributed to a major Democratic shift in Virginia, with the party winning majorities of both chambers of the legislature to support the Democratic governor.

“We’re going to have some change in Newport News, that’s for sure,” she told supporters Tuesday night. “I think we’re going to have change in Richmond, too.”