1. Overview
Default actions are the ones readily available as part of automation framework in algoQA. Action List provides the list of default actions supported for each of the automation types.
The following table provides you few of the the Default actions supported for a Web Automation using Java Selenium Framework.
UI Element | Description | Example | Default Action |
Radio Button allows you to choose one item at a time | To choose between options A and B, click on the radio button next to your preferred choice. | checked | |
Checkbox allows you to select one or multiple options from a list | To make your profile visible, select the check box and save your changes. | checked | |
Buttons indicate an action upon touch and are labeled using a text. | Click a button | clicked | |
A text box is an input area where you can type or enter text. Pressing Enter in the text box triggers the search action. | To perform a search, enter a keyword in the search box and press Enter. | select enter key | |
Buttons indicate an action upon touch and are labeled using a text. | When you click the button or link, all the items in your cart will be removed, and you will be redirected to the shopping cart page. | remove all items | |
Each specific cell where you are entering data is referred to as a textbox input area. If you are entering data into specific cells within a Microsoft Excel spreadsheet or a CSV file using parameters provided in a specific format. | Suppose you have an Excel file 'SalesData.xlsx' with a worksheet named QuarterlyReport. You want to enter the following data: "Total Sales" in cell B3 (2nd row, 3rd column). "Average Revenue" in cell D5 (4th row, 5th column). You can use this action and pass parameters in the specified format (filePath, sheetName, celldata-rownumber-colnumber, celldata2-rownumber2-colnumber2) to perform the data entry accordingly. | enter data in the required cell | |
Click and hold on a text box, then drop it to rearrange its position within the layout or move it to a different section. Click and hold on a button, then drop it to submit the form or save changes after completing a drag-and-drop operation. | Managing Tasks in a Project Management Tool Rearranging Task Fields: Click and hold the "Task Name" text box. Drag the "Task Name" field to the desired position. Release the mouse button to drop the task name in its new location, rearranging task fields for better organization. Saving Task Updates: Click and hold on the "Save Changes" button. Hold the button to ensure activation. After making changes to task details, drop the button to submit and save the updates, ensuring all modifications are recorded. Setting Task Priority: Click and hold on the priority drop-down list. While holding, choose the priority level such as "Urgent" from the list. Release the mouse button to finalize and set the selected priority for the task, prioritizing tasks based on urgency. Navigating to Dashboard: Click and hold on the "Go to Dashboard" link. Hold the link to activate navigation. Release the link to access the project dashboard, providing an overview of project status and metrics. | click and hold and then drop | |
Textbox appears after 3-second wait (which is passed as a parameter) by selecting an option from dropdown list in a web application. | Go to the checkout page of an online store, such as Amazon Checkout Page. Scroll down to the section where you select your shipping method. Click the "Shipping Method" dropdown menu. Select the option from dropdown menu. For example, you might see options, such as "Standard Shipping" and "Two-Day Shipping." Select the "Two-Day Shipping" option. After selecting "Two-Day Shipping," the website will wait for 3 seconds to process your selection. After the 3-second wait, a textbox will appear on the page. This textbox allows you to enter additional information related to your shipping method or any special instructions. Type any additional information you need to provide in the displayed textbox. For example, you might enter "Please leave the package at the front door." After entering the additional information, the website will update your shipping choice and display the details accordingly.
| wait in seconds | |
Input data into a textbox. Select an option from a dropdown list. Submit the form. Verify that the correct data appears in the resulting PDF report. | If you need to verify the content of a PDF by interacting with a web application that involves using a textbox and dropdown list to filter or input data, and then checking the resulting PDF, here's a detailed example using a scenario where a user might search for a product, select options, and verify the PDF receipt. Scenario Example Input data into a textbox: Search for a product (For example, "lenovo") on an e-commerce site. Select an option from a dropdown list: Choose a specific category or filter For example., "= $100"). Submit the form: Execute the search and select a product. Verify that the Lenovo laptop list with specific price is equivalent to $100 appears in the resulting PDF report: Download the PDF and check its content for "Lenovo = $100" | verify pdf data. | |
The element visibility validation through the 'verify displayed ' action allows you to check whether your UI element exists and is visible on the page or screen. | Example Navigate to the specified URL where the form is located on a webpage. Wait for the "Submit" button to become visible on the page. Use the is_displayed() method to check if the button is visible. Print a message based on whether the button is displayed or not. If an error occurs (for example, the button is not found), print an error message. | verify displayed | |
The "verify copied text" action allows you to check whether the text extracted from a UI element matches the text displayed in another UI element on the page or screen. This validation confirms that the copied text is reflected in the target element, ensuring consistency between the two. This action can be used even if the text is dynamic or changes based on user interaction or other conditions. | Example: If you want to verify that the text displayed in a notification matches the text copied from a source element on a webpage.
Locate the source element and retrieve its text. Ensure that source element is visible. Perform an action, such as clicking a button. Locate the target element and wait for the notification message to be visible and get its text. Verify text by comparing the copied text from the source element with the text displayed in the notification. Use an assertion to confirm they match. | verify copied text |
Related Articles
- To add, modify or update a UI element, refer to article Adding or Modifying Default actions.
- To add a parameter in the Node Configuration, refer to the section Adding a Parameter.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article