Versions Compared

Key

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

Inline XPaths allow you to enter own own XPath in a step without having to create a web locator which gives you the option to create test cases faster. However if you are planning on interacting with elements in several test cases where these elements could potentially change and would require maintenance, it’s best to use web locators as changing the XPath in one web locator automatically takes effect in all other test cases, while changing Inline XPath steps only applies to the step in which this change is made.

Similar to Web Locators, Inline XPaths support using variables. For example, if you create a step with Set_Var, the variable from this step can be used in any step with an Inline XPath. A collision may occur if your variable name is used in the XPath and this could cause some failures. For example, if you use //a[@id='test'], the ID in this XPath is an attribute in the DOM but the platform will look for a variable name with “ID” and if available, then this XPath changes and may cause failures. To avoid this, please make sure to use different variable names.

Inline XPaths are supported in the following commands:

...