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
Post a Comment