I am trying to extract the value from a text-box using selenium, but the text-box is marked as readonly and aria-live is set to off.
Here is the DOM structure:
<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">
On the webpage, the Summary of Account field displays the value "4567"
in a read-only field.
I have tried the following code to retrieve the value, but I always receive a null value:
string accNumber = driver.findElement(By.id("sumAccount")).getAttribute("title");
string accNumber = driver.findElement(By.id("sumAccount")).text();
Could someone please assist me in retrieving the value?