You might have got confused because of the mixed up answers. Well, the thing is automated testing can be both black or white box type of testing depending on the scenarios in which automation is performed. For example, it is black-box testing as tester usually tests the application without knowing the low-level design or code of the application. But sometimes, automated test scripts need access to the database details that are used in the application thus it can be a type of white-box testing as well.
Hope this helped!