Sometimes web applications use custom DOM attributes for internal purposes. XPath locators containing those attributes are sometimes more stable and resilient. Rapise contains features intended to simplify utilization of such attributes.
Consider sample web application http://www.libraryinformationsystem.org/react-js
Let's see how the DOM node for thePassword input looks like in the Spy:
It contains the placeholder attribute. However XPath is built using the id. Sometimes we want to use such an attribute for XPath generation and for Learn.
Open the spy Options.
By default Include DOM Attributes is empty. This means two things:
1. Use all attributes in the Spy Tree.
2. Use default attributes (id, name, for, label) for the XPath generation (xpath_min and xpath_index).
Let's change it to placeholder,id:
Now get snapshot again (Ctrl+G) and select the same element (Ctrl+T).
We can see that XPath generator used the placeholder attribute. Its logic is following:
If you want to use custom attributes for the Learn, then you may specify xpath_min as a default XPath:
DOM Attribute Include Filter specified in the options dialog is persistent. So you may fine-tune it for the specific application once and then get optimized XPath expressions every time when using Rapise Web Spy.
Selected files will be attached to any email sent on saving ticket.
Select files to upload
Or drag and drop files here
Save to upload the selected file(s)