While Adding or Editing New Test Case, you need to select the appropriate action for each step. All the available actions are explained below:
- Click: Simulates a mouse click on a specified element. Use it to interact with buttons, links, and other clickable elements.
- Double Click: Simulates a double-click on an element. Use it when the application requires double-clicking to trigger a specific action.
- Right Click: Simulates a right-click (context click) on an element. Useful for testing context menus or other right-click actions.
- Mouse Over: Simulates moving the mouse pointer over an element. Useful to test hover effects or to reveal hidden elements that appear on hover.
- Clear Text: Clears the text from an input field. Use it when you need to reset or modify the text in an input field.
- SendKeys: Simulates typing text into an input field. Use it to input text in form fields, search boxes, etc.
- Check Checkboxes: Checks a checkbox element. Use it to mark a checkbox as selected.
- Uncheck Checkboxes: Unchecks a checkbox element. Use it to deselect a checkbox.
- Submit Form: Submits a form element. Useful for testing form submissions without needing to click a submit button.
- Select Option from Dropdown: Selects an option from a dropdown menu. Use it to test selection of various options in a select element.
- Upload File: Simulates a file upload by selecting a file from the local system. Use it to test file input fields.
- ScrollIntoView: Scrolls the page until the specified element is in view. Useful when elements are not visible in the current viewport.
- Scroll to Window: Scrolls the window to a specific position. Use it to test behavior when scrolling to a certain part of the page.
- Go To URL: Navigates the browser to a specified URL. Useful to start testing from a particular page.
- Go Back: Navigates back to the previous page in the browser’s history. Use it to test the behavior of the “back” button.
- Go Forward: Navigates forward in the browser’s history. Use it to test the “forward” navigation after using “go back.”
- Refresh Page: Reloads the current page. Useful for testing page refresh behaviors and persistence of state.
- Element Exist: Checks if a specified element exists on the page. Use it to verify that an element is present in the DOM.
- Element Does Not Exist: Checks if a specified element is not present on the page. Use it to ensure an element has been removed from the DOM.
- Element Is Visible: Verifies if an element is visible on the page. Useful for checking whether elements are correctly displayed to the user.
- Element Is Not Visible: Verifies if an element is not visible on the page. Use it to ensure elements are hidden or not accessible to users.
- Element Is Enabled: Checks if an element is enabled (interactive). Useful for testing elements that should be active, like buttons.
- Element Is Disabled: Checks if an element is disabled (non-interactive). Useful for validating that an element cannot be interacted with.
- Element Has Value: Checks if an element has a specific value. Use it to verify input fields or text areas contain expected values.
- Element Has CSS Property with Value: Verifies that an element has a particular CSS property set to a specific value. Useful for testing styling rules.
- Validate Page Title: Checks if the current page title matches the expected title. Use it to verify you are on the correct page.
- Validate Current URL: Checks if the current URL matches the expected URL. Useful for ensuring you are on the right page.
- Blur Element: Simulates removing focus from an element. Useful to test behavior when an element loses focus.
- Focus: Moves focus to a specified element. Use it to test what happens when an element gains focus, such as triggering an event.
- Force Click: Forces a click on an element, bypassing any conditions that would normally prevent a click. Useful for testing elements that are overlapped or hidden.
- Select First Element: Selects the first occurrence of a specified element. Use it when dealing with multiple elements of the same type.
- Select Last Element: Selects the last occurrence of a specified element. Similar to the above, but for the last element.
- Next Element: Selects the next sibling element in the DOM. Useful for testing elements that appear next to a specific element.
- Next All Elements: Selects all sibling elements that come after a specified element. Use it to test subsequent elements in the flow.
- Should Not Equal: Asserts that a value does not equal another value. Useful for negative testing scenarios.
- Should Include: Asserts that a value includes a specific substring or element. Use it to verify partial matches.
- Should Be Null: Asserts that a value is null. Useful when testing for the absence of a value.
- Should Be Empty: Asserts that an element or value is empty. Use it to test for the absence of content.
- Should Equal: Asserts that a value equals another value. Use it to validate that expected values match actual results.
- Should Be Greater Than: Asserts that a value is greater than a specified value. Useful for numerical comparisons.
- Should Be Less Than: Asserts that a value is less than a specified value. Similar to the above but for lower values.
- Have Attribute: Checks if an element has a specific attribute with a certain value. Use it to verify HTML attributes like id, class, etc.
- Contain Text: Verifies that an element contains specific text. Useful for checking text content on the page.
- Enter: Simulates pressing the “Enter” key. Use it to test form submissions or actions triggered by pressing “Enter”.
- Should Be Hidden: Asserts that an element is hidden. Use it to check if elements are not visible or display is set to “none.”
- Should Be Selected: Checks if an option in a dropdown is selected. Use it to ensure the correct option is chosen.
- Should Be Checked: Verifies if a checkbox or radio button is checked. Use it to validate form states.
- Click Element Using Text: Clicks an element based on its text content. Useful when identifying elements by their text.
- Wait: Pauses test execution for a specified period or until a condition is met. Use it to wait for elements to appear, animations to complete, etc.