Replace a deprecated PageObject method

Bug: 58385

Change-Id: Ic8c769615fb00fb472bb8ac72767c3224a7379d0