add optional dom element def in runner create function