I would like to take the value using selenium from the text-box which is ready only and aria-live marked as off.
DOM as below:
<input autocomplete="off" class="abc" type="text" role="textbox" id="sumAccount" aria-describedby="sumAccount_describedby" tabindex="0" readonly="true" data-preview="true" aria-live="off">
In the webpage Summary of Account field is showing the value as "4567"
ready only field
I have tried the below code to get the value, I am getting null value always:
string accNumber = driver.findElement(By.id("sumAccount")).getAttribute("title");
string accNumber = driver.findElement(By.id("sumAccount")).text();
Can any one help me to get the value?