Fix unwanted selenium calls when printing WebElements