I have a form and it has certain fields which allow only numeric values.
My question is, I want to test that the fields only allow numeric values using Selenium IDE
I do not know how your application behaves under testing, but for the case that your mentioned input fields do not type in the values, the following code can do that you want to do. The following code has been written in Java and uses Selenium 1 API and Zuneit. Type
("Inputfield Lococator", "Hello"); String Field Val = getValue ("Input Filters"); AssertEquals ("", fieldVal); According to the request, the code as Selenium IDE HTML is as follows.
& lt; Tr & gt; & Lt; TD & gt; AssertNotValue & lt; / TD & gt; & Lt; TD & gt; Inputfieldlocator & lt; / TD & gt; & Lt; TD & gt; Hello & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; / TD & gt; & Lt; TD & gt; Inputfieldlocator & lt; / TD & gt; & Lt; TD & gt; Hello & lt; / TD & gt; & Lt; / TR & gt;
Comments
Post a Comment