[Browser test] Alternate solution for "headings" browser test

Change-Id: Iab455ba36817623b62b2c8fe881b2756d9023329