HTML Button

You may receive different results when trying to get an HTML Button value between browsers. To get the value of an element, the Telerik Testing Framework injects JavaScript into the browser and the browser returns a value. Firefox and Chrome read the value of an attribute named "value", while IE returns the inner HTML of the button.

 

For example, if we have a button defined as follows:

 

<button value="Value"> HTML </button>

 

IE will consider the value of the button to be "HTML", while Firefox and Chrome will consider it to be "Value".