Loading...

How to Handle Textbox Checkbox and Radio Button

This tutorial illustrates how to handle Textbox, Checkbox, Radio buttons using akaAT Studio. The reference source code is provided at the end of the tutorial.

How to Handle Textbox

A textbox is a field that allows users to enter text as an input. Textbox and text area are similar but the latter allows multiple lines and more characters.

Users can perform certain actions on textbox such as clear text, type text and validate the provided text using akaAT Studio.

Scenario: Verifying the provided text in textbox

Example #1: Handle Single Checkbox

Manual Mode:

  • Step 1: Open Browser with url

  • Step 2: Verify Element Clickable: the keyword “Verify Element Clickable” is used to validate whether the checkbox is clickable.

  • Step 3: Check on checkbox: With the keyword “Check”, we can easy handle checkbox to ensure the element is checked.

  • Step 4: The keyword “Verify Element Checked” needs the object repository and fills out the time outs.

  • Step 5,6,7: Get text and verify equal to check points and close browsers.

Example #2: Handle Multiple Checkbox

Scenario:

  • Click on 'Check All' to check all checkboxes at once.
  • When you check all the checkboxes, button will change to 'Uncheck All'
  • When you uncheck at least one checkbox, button will change to 'Check All'

Manual Mode:

  • Step 1: Open Browser with url

  • Step 2: Verify Element Clickable: the keyword “Verify Element Clickable” is used to validate whether the checkbox is clickable.

  • Step 3, 4, 5: Click the button Check All and get attribute value to verify equal with the expected result “Uncheck All”.

  • Step 6,7: Using “Un-check” to uncheck checkbox at the second and third checkboxes.

  • Step 8,9: Using “Verify Element Not Checked” to verify the object repository and time outs.
    The keywords Verify Element Checked and Verify Element Not Checked are used to validate whether an element is checked or unchecked, respectively.

  • Step 10, 11, 12: Get attribute value from button “Check All” to verify equal with the expected result “Check All”.

How to Handle Radio Button

Radio Button is a toggle-button that allows you to check the operations.
Scenario: Click on button to get the selected values from Group Sex and Age group

  • Step 1: Open browsers with the url.
  • Step 2: Using “Check” to click radio button on gender, here we choose Male.

  • Step 3: After checking radio button, we continue using “Verify Element Checked” to verify.

  • Step 4,5: The same above way to check radio button on Age group.

  • Step 6,7,8,9: Click button Get value to show the message information and verify equal with expected results, then close browser.

Manual Mode:

For further instructions and help, refer to [WebUI] Text and [WebUI] Checkbox.

Blog Posts

Image

Getting Started

Go to akaAT Download page to get the latest version of akaAT Studio. A suitable version for your system will be automatically detected and recommended for download...

Continue Reading...

Image

Define Test and Variables

In this chapter, we’ll first define the steps of the data-driven test. Then, we’ll define the required variables for this scenario. You’ll also find out how to manage variables in akaAT Studio...

Continue Reading...

Image

Multi-touch Actions in Mobile App

Multi-touch action often appears in gaming applications. This tutorial shows you how to perform a multi-touch action...

Continue Reading...

Image

Web Handling

What are Locators?
Locators are basically the HTML attributes of a web element. They help identify unique web elements on a page and command testing frameworks...

Continue Reading...

Image

Pop-up Handling

When performing automation testing, you may sometimes deal with pop-up dialog issue that needs to be handled differently from normal test objects. This tutorial shows you how to deal with pop-up controls....

Continue Reading...

Image

Alert Handling

What is an alert?
An alert is a JavaScript function which is used to notify users on a Web page. It displays a dialog with a specified message and OK/Cancel buttons...

Continue Reading...

Image

Textbox Handling

This tutorial illustrates how to handle Textbox, Checkbox, Radio buttons using akaAT Studio. The reference source code is provided at the end of the tutorial...

Continue Reading...

Image

iFrame Issue Handling

A very common type of control used in website is the HTML iframe. And this control needs to be handled in a specific manner when testing. This article shows you how to handle iframes...

Continue Reading...

Image

Dropdown Handling

A drop-down list (abbreviated drop-down; also known as a drop-down menu) is a graphical control element, similar to a list box, that allows the user to choose one value from a list...

Continue Reading...

Image

Static and Dynamic Test Objects Handling.

Test Objects are one of the most crucial parts of building a successful automation project. Some of them are static (do not change at all) and some of them are dynamic (they are dependent on some dynamically changing parameters)...

Continue Reading...