Reimplement ele_index / tag to avoid xpath