Element#to_s gave an <Element: Undefined> while Element#to_s gave a better output like <Element: [div id="some_div"]>