I have a UI that is rendered against the provided JSON in DB. If I change in the JSON how would I know the fields in UI
How I do this in selenium
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
If the UI is rendered on the basis of json provided and json file is having the locators that are being rendered then we can fetch them directly from the json and use the same. While providing software testing solutions one need to take care that how we are manipulating and executing the things. We can map the data which is being fetched from the json and depending upon its id or position(index) in the json file. We can refer them and and can use them till sequence is not changed. By mapping the index of locator in the json and fetching its attribute we can fetch them and use them. If still not clear please attach the json file that you are using and UI html screenshot so that we can elaborate it further.