appium / appium-inspector

A GUI inspector for mobile apps and more, powered by a (separately installed) Appium server
https://appium.github.io/appium-inspector/
Other
1.12k stars 282 forks source link

feature request: Add history to selectors #1584

Open fleytman opened 1 month ago

fleytman commented 1 month ago

Current Behavior

Typical mechanism for using the appium inspector

  1. Start session or attach to session
  2. Click on the magnifying glass icon
  3. Test your selector
  4. Repeat in a another session

Problems:

  1. At step 3, you may need to check the selector in id, xpath, etc. In this case, the last entered value is saved in the field, regardless of the tab.
  2. At step 4, the field "Selector" will be empty

Suggested Solution

  1. Store the selector value separately for each "Locator Strategy" tab
  2. Save multiple selector values, such as 100 (or manage the number in the settings)
  3. Store the value between sessions

Additional Information

No response

eglitise commented 1 month ago

Thanks, this feature absolutely makes sense. I think a reasonable approach would be to just have a new 'history' button in the search window, saving the last X strategies+selectors. This would be saved between sessions, and clicking any entry would populate the respective fields.

fleytman commented 1 month ago

The button with the history is quite normal - as the most obvious and simple one. If you are interested, what could be more convenient, but probably more complex?

  1. Switch between options with the up/down arrows as in the terminal
  2. Suggest for autocomplete with the ability to switch between suggestions
itkhanz commented 3 weeks ago

I also agree this feature would be pretty useful. Currently I have to write/copy locators again if I am to try any locators. Having them saved in history tab would allow users to quickly pick up the locator from recently tried locators history. This will be handy when we are trying to build complex XPath locators in absence of IDs in order to build a suitable locator.