I need to verify a value which is in "Unicef material-ui currency textfield". I use bellow code to get the value within the textbox but the value is empty.
var value = driver.FindElement(By.Id("txtCurrency")).Text;
If you inspect the input field in bellow sample, you can see even though text is visually displayed, "value" HTML attribute is empty.
HTML snapshot:
HTML:
<input aria-invalid="false" type="text" class="MuiInputBase-input MuiOutlinedInput-input jss493 jss561 MuiInputBase-inputAdornedStart MuiOutlinedInput-inputAdornedStart" value="">
Sample URL as bellow : https://unicef.github.io/material-ui-currency-textfield/#currencytextfield I would like to know a way to get the value/text of input textbox.
Project is in ReactJs and Selenium is in C#