Need help to get the full innertext of a WebElement using Selenium webdriver
<p>How can I get the full innertext from a WebElement, right now it is only getting part of it.</p>



<pre class="lang-html prettyprint-override"><code>       &lt;ul class="pagination-list"&gt;
        &lt;li class="page-to-left icon-bold-set-left page-to-left-disabled" ng-class="{ &amp;#39;page-to-left-disabled&amp;#39; : !HabilitaPaginaAnterior }" ng-click="PaginaAnterior()"&gt;&lt;/li&gt;
        &lt;li class="page-count ng-binding"&gt;1 - 10 de 24&lt;/li&gt;
        &lt;li class="page-to-right icon-bold-set-right" ng-class="{ &amp;#39;page-to-left-disabled&amp;#39; : !HabilitaProximaPagina }" ng-click="ProximaPagina()"&gt;&lt;/li&gt;
    &lt;/ul&gt;
</code></pre>

<p>And my selenium code:</p>



<pre class="lang-c# prettyprint-override"><code> public void EntaoAPaginacaoMostrando()
        {
            string validaPaginacaoString;
            IWebElement ControllerPaginacao = driver.FindElement(By.XPath("//div[@ng-controller='PaginacaoController']"));
            IWebElement validaPaginacaoString = controllerPaginacao.FindElement(By.XPath("//li[@class='page-count ng-binding']")).GetAttribute("innerHTML");         

            Console.WriteLine("TestData: o texto de paginação é: " + validaPaginacaoString);


        }
</code></pre>

<p>Running this code, my result always is "1 - 10 de" for some reason I can´t get the "24". </p>

<p>Thank you for the help.</p>