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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -