[Browser tests] Sort all the elements for Links tests to proper iframes

Change-Id: I873cfaccf7211f379eadc6574edbe8de8c2e15f1