A court has heard how an electrician asked questions as he was planning a rape on an elderly woman who lived alone in Sydney.