We investigate Rabi-like oscillations of topological valley Hall edge states by introducing two zigzag domain walls in an inversion-symmetry-breaking honeycomb photonic lattice. Such resonant oscillations are stimulated by weak periodic modulation of the lattice depth along the propagation direction that does not affect the overall symmetry and the band topology of the lattice. Oscillations are accompanied by periodic switching between edge states with the same Bloch momentum, but located at different domain walls. Switching period and efficiency are the nonmonotonic functions of the Bloch momentum in the Brillouin zone. We discuss how efficiency of this resonant process depends on detuning of modulation frequency from resonant value. Switching of nonlinear edge states is also briefly discussed. Our work brings about an effective approach to accomplish resonant oscillations of the valley Hall edge states in time-reversal-invariant topological insulators.