step-by-step
$$\lim_{x\to\:\infty\:}\left(\frac{\sin\left(x\right)+1}{\cos\left(x\right)-1}\right)$$
it