Could someone explain to me why in the following .Net Specflow code if my textboxElement's text is empty, then I send keys to it, why is text still empty? (when on screen the textbox's text changes):
textboxElement.SendKeys("John Smith");
var text = textboxElement.Text;
// text == ""
Is it not possible to "refresh" the value of an element? (or have I just missed something really obvious :-))
textBoxElement.GetAttribute("value");. It's aninputelement.inputelements don't usually store their displayed text like other elements, but rather in theirvalueproperties.