Saturday, 1 February 2014

Working with UI (UI Interaction)



1.     Working with textboxes  :
·        Clear the textbox existing value :

·        Enter the value in Textbox:

·        Verifying the  value in Textbox:
Some time you may require to verify the default value of the textbox, in such cases, you can use the below command.               



2.     Working with Checkboxes  :
·         Toggle on the checkbox :


·        Toggle off the checkbox :

·        Verify the default status of the checkbox :



                                                
3.     Working with Radio Buttons  :
Generally in radio buttons we will have the scenarios like On/Off/Verify the default status, Let us discuss here how we can achieve the same with WebDriver
·          Toggle on the Radio button :



·          Toggle off the Radio button :


·          Verify the default status of the Radio button :
    




4.     Working with Select box (Single Select/Dropdown) :
In select box we need to select the value and we need to verify the default selected value
·        Select the value from select box using the display text matching the argument

·        Select the value from select box using the index



·        Select the value from select box using the value matching the argument


·        Getting all the options in select/Dropdown


·        Verifying the selected option
                   


5.     Working with MulitpleSelect box (List Box) :
·        Getting all the options in select/Dropdown




·        Selecting the value from List Box
   You can select the item in list box using the below ways
  

·        Deselecting the item/Items from List Box


No comments:

Post a Comment