Improved waitForView
Added checkIsShown parameter to waitForView()
If scroll is false set checkIsShown to true
Refactored waitForView()