Normally you cannot target something with total cover.
But there are situations where it might make sense to allow a ranged attack against a target with total cover. Imagine a group of monsters behind a high wall, but some distance away from it. A character on the opposite side wants to fire his bow in an arc over the wall. Presume he has some knowledge of where the targets are, e.g. a spotter on the wall, or having seen a target run behind the wall and assuming constant speed and direction. If we allow it, then obviously he can't see his opponent so at the least he would have disadvantage on the roll.
However I'm not sure if this would be any different than firing at an invisible opponent, or if an additional AC bonus is in order due to cover. My gut feeling is that if the character is unlikely to accidentally hit the wall with the arrow, then it isn't really providing cover, merely blocking line of sight.
But there are situations where it might make sense to allow a ranged attack against a target with total cover. Imagine a group of monsters behind a high wall, but some distance away from it. A character on the opposite side wants to fire his bow in an arc over the wall. Presume he has some knowledge of where the targets are, e.g. a spotter on the wall, or having seen a target run behind the wall and assuming constant speed and direction. If we allow it, then obviously he can't see his opponent so at the least he would have disadvantage on the roll.
However I'm not sure if this would be any different than firing at an invisible opponent, or if an additional AC bonus is in order due to cover. My gut feeling is that if the character is unlikely to accidentally hit the wall with the arrow, then it isn't really providing cover, merely blocking line of sight.