Architect Page Objects Creation Overview
Creating Page Objects with Architect is similar to creating a test case. The main difference lies in selecting the test type as "Page Object" when saving.
How to Create a Page Object in Architect
Step 1: Begin the Process
-
Start a New Architect Test: Click on the + New Architect Test button in the upper right corner of the screen.
Note: The Architect plugin must be installed in the Chrome browser.
- Enter Starting URL: Input the URL of the application you wish to test.
Step 2: Launch Architect
- Confirm Understanding: Check the box stating, "I understand that no production credentials should be used in my test case."
-
Start Architect: Click Start. The URL of the application under test will open, and Architect will launch.
Step 3: Record Actions
-
Record Actions: Walk through the test case, allowing Architect to record the steps.
Step 4: Save Test case
- Save Recording: Once you have finished recording the page object actions, click Save.
-
Name the Page Object: Provide a name for the page object and click Continue.
Step 5: Set as Page Object
-
Test Type: Identify these recorded actions as a Page Object from the Test Type dropdown menu.
-
Confirm and Save: Confirm the Page Object name and then click the Save button.
Step 6: Verify Page Object
-
Locate Page Object: The Page Object will be saved under the Page Object tab on the Test Listing page.
- Use Page Object: This Page Object can now be used/added in any test case.
For further information, refer to Set a Page Object Within an Existing Test Case.