MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Scripting dynamic DOM locators?

WebPagetest Forums

Full Version: Scripting dynamic DOM locators?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I am trying to script a site that uses dynamic DOM identifiers (session based, of the type getElementById("yui_3_10_3_1_1438259156165_866") where the last 3 digits change.

I tried introducing a * wildcard, but no dice.

Any way of using CSS locators instead?

Advice welcomed.


Your best bet is to use the exec(andwait) command and just use javascript to do whatever you want. It also makes it easier to debug because you can get it working locally in a dev tools console before trying remotely.
Reference URL's