Copy only the element selector during recording/pause

As a user, I wish I had the option to only copy the selector of a specific element I want during paused recording.

Scenario:

  1. A test failed

  2. I run the test locally and pause it before the failed step

  3. I record the step again

  4. I notice that only the selector changed

  5. I delete the old failed step

  6. I now have the correct step

  7. I resume the test execution

  8. Test fails again a few steps later

  9. I investigate a bit more and conclude that this test will fail to very specific elements that now have been updated in our software

  10. I keep running the test until each failed step, record the step again, delete the old one, and repeat the process

The above shows the power of the pause and record functionality, however there are scenarios where if I know the exact elements that will need a new selector, I wish I could improve my speed by simply updating the selectors of the steps in advance instead of pausing and resuming everytime.

I think the above could be improved by having an action in the recording modal that allows the user to “Copy to clipboard” the selector of the clicked element. This way I can easily update in bulk, and in advance, a series of steps, and then resume execution of the test once, lowering the number of times I need to pause the test to fix things.

I think this new button could be added in the modal during “pause” model.

So the scenario above would turn into something shorter:

  1. A test failed because a selector is invalid

  2. I run the test locally and pause it before the failed step

  3. I record the step again

  4. I delete the old failed step

  5. I now have the correct step which turns out only had an updated selector

  6. I resume the test execution

  7. Test fails again a few steps later

  8. I investigate a bit more and conclude that this test will fail to very specific elements

  9. I use the copy selector button to find the selectors I need and update the steps in advance

  10. I resume the test execution once and it will pass.

Further points:

  • Which selector should be copied? I think the system should consider the same order/priority as on the project settings

  • I think this button would be useful even in general if we need to find a specific selector as an alternative to manually building selectors using the tool “No-code XPath Selector Builder by BugBug"

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

💡 Feature Request

Date

23 days ago

Author

Marius COJOCARIU

Subscribe to post

Get notified by email when there are changes.