Replace Steps
Replace Steps feature can be used by an admin user to replace steps in bulk for the following commands:
Click > to Click, Execute_Javascript or Hover_And_Click
Execute_Javascript > to Click, Execute_Javascript or Fill
Fill > to Execute_Javascript or Fill
In order to use this function, the admin user must first enable Maintenance Mode. To do this, click Account Preferences under Administration Menu
Click the Maintenance Mode icon to activate it.
Once the maintenance mode is activated, you will see this icon displayed on the top right:
Close your test case if you plan on replacing steps in it. Under Test Library, click Replace Steps icon highlighted below:
From the dropdown list, select the command which is used in the steps you would like to replace. You can select Click, Execute_Javascript or Fill commands.
Once the command is selected, select/enter command options which will identify your specific steps. For example, if you want to replace Click steps where the used locator is “random.image.test_project“, you can enter it in the Locator text box. When you finish, click the Search icon on the top left corner of the window.
The section on the right side will be updated to reflect how many occurrences this element has been used. As you can see on this window, this web locator was used only once. Note that if you cannot find your result, make sure that the Runtime Options are correct. If you are looking for a step where “Continue on Failure” is enabled, it will not be displayed when “Halt on Failure” is selected on this window.
To replace the step from Click to another command, select a command from the Target dropdown list. Your selections will vary depending on what the Source command is.
In your Target command, enter the element, you can either use the same element or use a totally different one. Note that you can see a dropdown list in the Target but not in the Source. The reason for this is that the Source should be specific while the Target is not limited as you can replace with any existing element.
When you are ready to make your replacement, click the Replace icon highlighted below:
Once finished, make sure to unlock the account otherwise the other users will not be able to log in until Maintenance Mode is disabled. You can do so by clicking on the icon on the top right or by going back to Administration > Account Preferences and clicking the Lock icon.