Posts

Showing posts from 2019

Exploratory testing Vs Documentation in Agile

Image
Manual testing is technical debt. -  A wise developer I was a part of a meetup where the topic was how to approach Exploratory testing in Agile. The interesting part of the meetup was to learn that many people that are now following Agile framework for development find it hard to do a complete transition from conventional methods of development. And for them, it becomes hard to define how much time to invest in Exploratory testing vs other conventional ways of testing? Some of the questions from the meet were - How much exploratory testing needs to be documented Are there any tools available in the market that can help in better exploratory testing What process or strategy can help in better exploratory testing To what extent we can do exploratory testing I can understand that people who started their career into the software industry in the '90s are more inclined towards some level of documentation. And when it comes to testing, it is more preferred to document sce

What is JavascriptExecutor in Selenium?

Image
In Selenium Webdriver, locators like ID, Name, XPath, CSS, etc. are used to identify and perform operations on a web page. And there are certain cases when these locators do not work. Here I am talking about some examples and these are from my first-hand experience. Let's get started- Case 1: In this case, we talk about elements that show up on UI and works fine when interacted manually but not using code. You cannot reach these elements in desired or conventional ways and performs actions on them using the locators in Selenium. Like, a click action on a radio button or a checkbox or a normal button. What you see in the below screenshot is one such button named Publish. This element is not interactable when we approach it with any kind of locator in Selenium. But manually it works as expected. Well, that’s a different story of how this happened. This is a low priority issue because the element is behaving as expected when tested manually. So we are not bothered to

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