A man will face court over an alleged attempted sexual assault of a woman in the early hours of the morning as she came home from work.