Editing Page Objects

Editing Page Objects Overview

Page Objects can be edited as easily as test cases and are ready for use across a whole project.

  1. Open a project to the Test Listing page.
  2. Click the Page Objects tab in the left sidebar panel.
  3. Under the Actions column, clicking the Action button will open a menu: View / Rename Page Object / Delete.

    • Selecting Rename Page Object will open a modal to change the name of the Page Object.
    • Clicking View from the Action button menu under the Actions column will bring the user to the PO Details page.
    • The Page Object name can also be edited on the PO Details page by hovering over the name in the file path and clicking the pencil icon.
  4. Open the Settings menu to check the Audit Log, Bulk Update Actions, Bulk Delete Actions, Remove/Add Global, and Lock Page Object.

    • Click on Remove Global to open a popup window to remove the page object as global.
    • Click on Lock Page Object to open a popup window to lock the page object.


      Note: Only Project Admin, Team Admin, and Site Admin can interact with the Lock Page Object button.

  5. Hover over the space between actions to see the Insert Action button, click the button to open the Insert menu and select the action to insert into the Page Object.


    Note:
    Element-based actions can only be added via Slider View.

  6. A modal will open according to the action selected, including any necessary parameters to set.
  7. A second modal will open for you to confirm the addition of the action as well as the number of tests using the Page Object.
  8. The inserted action is now included in the Page Object.
  9. As with test cases, all actions can be expanded to see the Settings, Flags, and Information available for that action.
    • Click the Action banner to expand the action. Each action will contain a Settings and Advanced tab as well as buttons for Delete action, Local Edit, and Clone action.

Edit a Page Object in Slider View

  1. Click the View button to the right of any action to see the Page Object in Slider View.
  2. As with test cases, all settings for each action are available by clicking the gear icon.
  3. Open the Actions (...) menu for options to open Local Edit or Delete the action.
  4. Expand the action to access the Skip Action, Enable Force React, or Positional Selection flags.
  5. As with the PO Details page and all test cases, hover between two actions to see the Insert Action button.


    Note:
    Only non-element-based actions are available to insert in a Page Object when in Slider View.

Additional Notes:

  • All the same functionality and more is available when a Page Object is included within a test case. In addition, the Slider View may be used for other advanced editing such as Smart Screenshots for Quick Select and Quick Add. Quick Select, unlike other edits to Page Objects, only affects that particular test for that particular browser.
  • Page Object Parameterization may also be used from within a test case for scenarios where certain Page Object data may be different for specific test cases.