Replaced sleep with page-object gem waiting API

Bug: 46887
Change-Id: I73a3007a58ac47e71ecdff5c0eb6aa1f5c2e0d90
Merge "Replaced sleep with page-object gem waiting API"