Build: Don't use casper.clickLabel

Re gh-7330

(cherry picked from commit 5f26c2eafe1d0e5162a84cb24c0461cc6b3dca51)
Demos: malformed anchor in navigation menu

Fixes gh-7329

(cherry picked from commit 4c7179bfc1c21578b710d9d5d231ba25a562061f)