Skip to content

List of Examples by UI Element

Worksoft SaaS supports an extensive list of diverse commands, that you can use to realize your test automation goals. 
 
When developing scripts to automate the testing of your web applications, you will agree with us that the major portion of automation involves interactions with the user interface (UI) elements.

Considering that you know the specific UI element, for developing the automation or debugging/ fixing an issue, the possibilities are:
  • You might not know which Worksoft SaaS commands are the best fit for your requirements
  • You are looking for more suitable alternatives to the Worksoft SaaS commands currently being used
In that case, please click here to access the article that groups the commands available to use within Worksoft SaaS, to interact with each user interface element type.

In addition to the referenced article, this article provides a list of example (sample) test script snippets, grouped by UI element that helps you to rapidly accomplish your test automation goals.

The examples in the table below are organized based on the grouping of the UI elements (or form controls). Click the element name (hyperlinked) and you will be easily directed to the specific list of examples on the page.  
  • Textbox

    /

    Textarea



    Textbox/Text area elements are text options, which help you to input values and perform various functions accordingly. Click the icon of the respective action, you would like to automate.  
    Example # Automation Goal / Objective View Example
    1 How do I enter text in an input field
    2 How do I append text in an input field
    3 How do I clear text in an input field
    4 How do I simulate "Enter" action along with data entry
    5 How do I simulate "Tab" action along with data entry
    6 How do I validate the value in an input field   
    7 How to read the value of an input field
    8 How to set text when the element is in read-only state
  • Radiobutton


    Example # Automation Goal / Objective View Example
    1 How to select a Radio button
    2 How to validate if a particular radio button is selected

    3 How to validate if a particular radio button is not selected
    4 How to read if a radio button is selected or not
  • CheckBox


    Example # Automation Goal / Objective View Example
    1 How to select/check a checkbox
    2 How to unselect/uncheck a checkbox
    3 How to validate that a particular checkbox is selected/checked
    4 How to validate that a particular checkbox is not selected/checked
  • Frame


    Example # Automation Goal / Objective View Example
    1 How to work with elements inside a frame
    2 How to switch the focus of the elements between frames
  • Label


    Example # Automation Goal / Objective View Example
    1 How do I validate the element is visible
    2 How do I validate the text on UI
    3 How do I validate the color of the element
    4 How to print a string or value
    5 How do I get the required element into viewport
    6 How do I initialize a variable
    7 How do I store the text of an element
    8 How do I read the visibility of an element

Feedback and Knowledge Base