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