Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Interactive Mode: in this mode, you will be required prompted to enter a hint/label that can be used to generate XPaths for your test case. This mode always generates relative XPathsHowever, you can click Confirm and the recorder will still generate an XPath and capture your step.

  2. Silent Mode: in this mode, you will not be required to enter a hint/label, everything will be captured automatically. This mode uses absolute generates relative XPaths by default , unless you have created XPath Templates with relative XPathsand can utilize XPath Templates to generate specific XPath formats. Additionally, it can utilize a smart algorithm (same as in Interactive Mode) to generate relative XPaths. Absolute XPaths are only generated as a last resort.

Note: Refer to Set Preferences to a Test Case (User Execution Preferences) to activate/deactivate the recorder and switch between modes.

The recorder uses Web Locators in Interactive Mode and Inline XPaths in Silent Mode where each step contains an XPath that inline XPaths in both modes which can be used to interact with web elements. Inline XPaths can also be used without the recorder, please refer to Inline XPaths page for more information.

...

1- Create an automated test case and click Run Test. You do not need to select Goto_URL to start recording, this step can be captured automatically.

...

2- Once the automation browser has started, it will automatically navigate to Subject7’s website. Click Record icon on the platform.

...

3- Paste your URL on the automation browser to capture the navigation step.

...

6- You can switch between recording modes at anytime during recording. To learn how to do this, please visit Set Preferences to a Test Case (User Execution Preferences)

7- You can determine where a new step is added as follows:

...

2- A box will appear where you will need to enter a hint/label for the object. Once the hint/label is entered in “Target Label” field, you can click ✓ to record your step. If you would like to skip this click interaction, you can click Skip button in the middle. You can also move this box using the button on the left side that allows to drag and drop it.

...

3- After clicking Confirm and going back to the platform, you will notice that your Click interaction was recorded and an Inline relative XPath was added.

...

4- If you like, you can convert this Inline XPath into a web locator by clicking the right arrow next to the XPath field. This will allow you to use this web locator in other test cases. To do this, simply click on the Right Arrow highlighted above. The New Locator window will appear where you need to select a Web Page, a Type and an Alias to save your web locator.

...

2- Enter a label to identify the element and click Confirm

...

3- Your step will be captured and added on the platform. As you can see, the value was automatically collected for you.

...

Verifying Text on Screen

1- To verify that the logged in, we can validate that the text “Tom Smith” appears on the page. To do that, select the text as below

...

3- Alternatively, you can record clicking interaction and expand the Click step, you will see a dropdown list next to Convert to. You can select Get_Web_Value to retrieve a value from screen, Hover to hover over an element or Verify_Element to verify the existence of an element using XPath. Once you select an action, click Apply Convert.

...

4- If you choose Get_Web_Value from the recorder popup, a variable name will be automatically added for you. If , but if you convert from Click, you will need to enter a variable name. You can change the Type according to your scenario and you can also convert the Inline XPath into a web locator if you would like to use the same web locator in other test cases by using the Right Arrow icon.

...

6- If you choose Verify_Element, you will see that Exist checkbox Exists radio button is enabled. If you would like to verify that this element does not exist, you can disable the checkboxenable Does Not Exist radio button instead. Check Invisible will allow you to verify the existence of invisible elements and Check Disabled will allow you to verify disabled elements. With these checkboxes disabled, these steps will fail depending on the state of your element. You can also convert the Inline XPath into a web locator if you would like to use the same web locator in other test cases by clicking the Right Arrow icon.

...

Double-Clicking and Right-Clicking Elements

...