Modify Annotations Programmatically Using TestNG IAnnotationTransformer2

Among the sevral listeners provided by TestNG, I find IAnnotationTransformer2 listener as one of the coolest ones. Th reason being, it allows to modify or change the annotations through code by changing the annotations parameters, instead of declarative approach through XML. It works at both levels viz. annotations on classes and methods. Read more about … Continue reading Modify Annotations Programmatically Using TestNG IAnnotationTransformer2


Handling tinyMCE editor with Selenium Webdriver

Here is how to use Selenium Webdriver with tinyMCE: The tinyMCE editor creates its own iframe, so before selenium is able to perform any task or action on it, it has to first switch the control to the iframe and then start execution. Here is how to switch this: // Select the iframe driver.switchTo().frame("yourtxtarea_ifr"); // … Continue reading Handling tinyMCE editor with Selenium Webdriver

Selenium Element Selectors

To perform operations and tasks on webpage and or elements of the page, the selenium script requires to be aware of the element on which the operation is to be performed. Selenium provides a range of element selection method for that purpose. We will be looking at the most commonly used ones. Selectors Selenium generally selects … Continue reading Selenium Element Selectors

Setup Environment For Selenium

Goals/Requirements Before starting to setup things lets lets clearify our requirements for the setup and the course We want to be able to write Selenium scripts but not individual scripts, but with a more organized and robust structure We will be using Java as the main programming language for writing the scripts, so the latest jdk … Continue reading Setup Environment For Selenium

Selenium Components-Selenium IDE and Webdriver

Selenium Components Selenium has two components viz. Selenium WebDriver and Selenium IDE. Lets take a closer look at each of them. Selenium IDE It is available as a Firefox addon that one can use to simply record the scripts to run and/or export them for later run. The IDE can run/play the earlier recorded scripts. … Continue reading Selenium Components-Selenium IDE and Webdriver

Selenium Introduction

What is Selenium? Just like any other automation tools to automate some task or list of tasks, Selenium automates the web-browser for you. In very simple words: "it tries to act as a real user and interacts with web pages(or web-applications)". Few Scenarios For Testing Imagine a situation where a there has been few upgrades(changes) … Continue reading Selenium Introduction