How can i verify if the text on the button is correct in selenium using C# -


i need verify if text on button correct? how can text on button in selenium using c#. thanks

hi answer using method. public static t getattributeastype<t>(this iwebelement element, string attributename) { string value = element.getattribute(attributename) ?? string.empty; return (t)typedescriptor.getconverter(typeof(t)).convertfromstring(value); }


Comments

Popular posts from this blog

What Are The Best Universities In The World?

The Ten Most Livable Cities In The World

Hard vs. Soft Water: What's The Difference?