I have a curious case where the selenium chrome driver getText() method (java) returns an empty string for some elements, even though it returns a non-empty str
getText()
for (int count=0;count<=sizeofdd;count++) { String GetInnerHTML=getddvalue.get(count).getAttribute("innerHTML"); }
where, 1. getddvalue is the WebElement 2. sizeofdd is the size of getddvalue