Online/virtual Preschool

Does preschool count toward child/dependent care credits if the child attends online? It is so the parent can work but the preschool classes are online.  I can’t find any info for virtual preschool expenses.