Lynda Carter opened up about what it was like to work with Melissa Benoist on the set of “Supergirl.”

In a recent interview with E! News, Carter said that she had a great time filming with Benoist on the Vancouver set of the show’s sophomore run.

“It was really neat when I was on set with Melissa Benoist,” said the 65-year-old actress, who played Wonder Woman on the 1970s ABC-turned-CBS series of the same name. “Well, there are some surprises that I can’t give away, but we had a lot of fun on the set because she does a couple of things that are Wonder Woman-ish and we laughed.”

“I think she is a talented and amazing girl,” Carter gushed of her co-star, who plays the title role on the CW series. “I said [to her], ‘You know, I may be the only person ever that gets what you’re going through. I get everything. I get it all.”

Carter will play the recurring role of President Olivia Marsdin in Season 2 of “Supergirl.” She is set to make her series debut in next week’s episode, entitled “Welcome to Earth.”

In an interview with Entertainment Weekly, executive producer Andrew Kreisberg said that Carter’s POTUS role is going be a target of attacks after signing an alien amnesty act into law.

“She very much believes in this cause, which is going to put her in danger, which is going to necessitate Supergirl protecting her,” Kreisberg said.

According to the synopsis for the upcoming episode, an attack is made on the President as alien vs. human rights issues become a hot topic in National City. While Alex (Chyler Leigh) and Science Police detective Maggie Sawyer (Floriana Lima) work together on the investigation of the case, Kara looks for a recently escaped Mon-El (Chris Wood), who  she thinks may be the one responsible for the assault.

“Supergirl” Season 2, episode 3 airs on Monday, Oct. 24, at 8 p.m. on The CW.