$\int_1^{\infty}\cos(x^2) dx $ exists but obviously $\lim_{x \to \infty}\cos (x^2)$ does not exist.
Altought not requested in the original post, it is instructive to note that $\int_0^{\infty}\cos(x^2) dx =\frac12 \sqrt{\frac{\pi}{2}}$. This can be easily verified by using contour integration and applying Cauchy's Integral Theorem.
Let $C$ be the contour that consists of $C_1$ along the real axis from $0$ to $R$, $C_2$, the portion of the circle $|z|=R$ that starts at $(R,0)$ and ends at $(r/\sqrt{2},r/\sqrt{2})$, and $C_3$ the line segment that starts at $(r/\sqrt{2},r/\sqrt{2})$ and ends at the origin. Then, Cauchy's Integral Theorem reveals that
$$\oint_C\,e^{-z^2}\,dz=\int_0^R e^{-x^2}dx+\int_0^{\pi/4}e^{-R^2e^{i2\theta}}Re^{i\theta}d\theta-\int_0^R e^{(1+i)^2t^2}(1+i)dt=0$$
The middle integral is easily seen to vanish as $R \to \infty$. Now, simplifying and using $\int_0^{\infty}e^{-x^2}dx=\sqrt{\pi}/2$, we find
$$\int_0^{\infty}e^{-it^2}dt=\frac{\sqrt{\pi}}{2}e^{-i\pi/4}.$$
Finally, equating real and imaginary parts yields
$$\int_0^{\infty}\cos(t^2)dt=\frac12 \sqrt{\frac{\pi}{2}}$$
and
$$\int_0^{\infty}\sin(t^2)dt=\frac12 \sqrt{\frac{\pi}{2}}$$