Don't react to the potty "accidents," just calmly tell her to go change her clothes. No anger, no punishment, just tell her to change her clothes and put the wet ones in the bathtub or washing machine. If you get angry or she's punished, that's honestly just as bad as coddling her since she's still getting a strong reaction to intentional misbehavior. If you don't react, she'll eventually give up that tactic.
Otherwise, DO give her your full and undivided attention sometimes, and then other times encourage her to have quiet time or play on her own. Also enforce respect for other people's boundaries, since if she's doing this to her parents she's probably doing it to other kids in school, and it's a very annoying habit.