What is a black box testing and white box testing in automation

The automation testing that we do over the web with the help of selenium comes under black box testing or white box testing?

Technically it is GUI testing based on functional requirements/features, White box testing is testing of the core code done by the developer which is also referred to as unit testing