Answered

Save, Save and Close buttons in Locator UI not working properly when updating xpaths/Web Ids

Hello, I have noticed an issue with the Save and Save and Close buttons in the Locator UI not working properly when updating a locator writh a predefined xpath or web id. Please see scenario below..

  1.  Perform a Local Run of a test case and stop at a step with a locator that has a xpath defined in the Web Locator UI, but the element also has a Name or Web Id tag.
  2. Remove the existing Xpath under the Locator Strategy/Xpath section and enter the Name or Web Id tag under the Locator Strategy/Other section.
  3. Click the Save button and confirm the changes made are still showing.
  4. Proceed to click on the Save and Close button and return to the Configuration screen for the locator's command.
  5. Do not click on the Reload/Refresh button.
  6. Go back to the Configuration screen for the same step and click on the View Web Locator icon.
  7. Both the updated Xpath and Name or Web Id fields should now show as empty, even though the Save button was clicked.
  8. Click on the Save & Close button.
  9. Repeat Steps 5 and 6 and this time the changes will correctly.

... this only happens when you decide to update from a xpath to a web id or name for an element and save initially, it does not matter if you do Save or Save and Close.

 

Thanks.

0
2 comments
Avatar
Joseph Hamdan

Hi Stephen,

Thanks for creating a post. Do you mind recording a video of this and sending it via email? Also, what's your Subject7 version?

Regards,
Subject7 Team

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Stephen,

Thank you so much for the video, this makes it clearer.

Please note that this behavior is not an issue. When you click one of the radio buttons under Locator Strategy, you are expected to add a value there before saving. So if you already added a value then switched to a different strategy, that value will not be saved, because only one strategy is allowed to be used at a time. 

More closely related to your video, you don't need to clear the XPath field, simply switch to Other and add the Web ID value, then Save. If you open the locator again, you will find that XPath has been cleared automatically (being no longer the default option to use). 

Regards,
Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.