Scripting dynamic DOM locators?

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.