What is difference between ‘Get Text’ and ‘Get Attribute’

configuration
automation-studio

#1

What is difference between ‘Get Text’ and ‘Get Attribute’ Action shown in ‘Property Grid’ in web automation?


#2

@venkata.d

'Get Text’ interaction fetches text values of labels or text box.
‘Get Attribute’ action gets values of attributes in the html tag of a web element.
If you do not get the text value by using ‘Get Text’ action, you can try using the ‘Get Attribute’ interaction to get either innerText or text value of the UI element. You can also use ‘GetAttriburte’ interaction to get attribute value of other properties