Posts

Showing posts from June, 2019

What is UI Map in Selenium?

Image
UI Map (User Interface Map) also termed as Object repository is a concept in Selenium for defining, storing, and serving UI elements of an application. It contains a set of ‘key-value’ pairs, where the key is an alias of the UI element, and a value is a locator. It can be defined in the very famous properties file or in a static class inside your project. To understand it even more clearly you need to understand what are Locators . To perform any action we need locators of a UI element. Webdriver will perform any action based on the locators. For each and every action Webdriver (or any such tool) depends on these locators. If the Webdriver does not identify the locators, it simply throws an error as Locator / Element Not Found or Identified. In order to make sure the Webdriver executes smoothly, we need to provide an accurate unique identifier/locators. We need to keep all the locators related to one page or components (in case of single page applications) at one p