The purpose of this paper is to investigate a nonlocal Dirichlet problem with $(p(x),q(x))$-Laplacian-like operator originated from a capillary phenomena. Using the variational methods and the critical point theory, we establish the existence of infinitely many weak solutions for this problem.