A trial could take place for a young man accused of attempting to sexually message a child online, allegedly asking her to be his girlfriend.