A Perth woman has apologised for squirting breast milk at a female police officer during a strip search.

Erica Leeder, 26, from Calista in Perth's south, was arrested on a warrant last week and taken to Rockingham police station.

It is alleged that while she was being strip-searched at the police station the 26-year-old grabbed her breast and squirted milk onto a female officer's forehead, arms and clothing.

"I just wanted to say I'm sorry (to the officer) and there's not much that I can say besides the fact that I wasn't really myself at the time," Ms Leeder told the media outside court.

Erica Leeder, charged with assaulting a police officer. (Supplied)

Ms Leeder was charged with assaulting a public officer, but denies she intended to hurt the policewoman.

"It wasn't really something that I went in with thoughts of malice about," she said.

The mother of two said she was not feeling mentally stable at the time.

Today at Perth Magistrates Court a judge told Ms Leeder could face jail time if found guilty as she already has a conviction for assaulting a police officer in 2012.

She was released on bail on the condition that she stay at her mother's home and to undergo regular mental health assessments.