Developer exposes few internal values I need for testing as a display:none div:
<div class="veryuniqueclass" style="display:none;">&QSC=11221.00&QSN=11194.00&CPCWC=0.02&CPCN=790</div>
I need for futher calculations to capture text in that div (i.e. "&QSC=11221.00&QSN=11194.00&CPCWC=0.02&CPCN=790").
I have a webdriver elements for those divs. Browser element is variable b:
infoElements = b.divs(:class => "veryuniqueclass")
i1 = infoElements[0]
i1.text returns an empty string instead of a string with parameters I'm expecting. How to access what's between div and /div?