Month: November 2014

How to create Object Repository in Selenium

November 30, 2014

Unlike QTP/UFT, Selenium does not offer the default implementation for  object repository. In QTP things are really straightforward, just object spy the controls and add to object repository, and further with the blessings of intellisense feature in its IDE, utilize them easily in writing scripts. But how we can achieve the same in selenium??..It can be done […]

Read More

Working with Text Files in Selenium using Java

November 28, 2014

Today we are going to focus on learning to work with Text Files in Selenium. We have already dealt with Exceptions in Selenium now we will focus on how to open/write/read to a text file. Further we would utilize the learning in our real life example of reading all the links on page and write it […]

Read More

How to Catch Exceptions in Java?

November 27, 2014

We understood the basics of Exception in Java, now we will move towards handling these exceptions. We are aware of the fact that when error is detected, an exception is thrown. This means the normal code execution stops and the control are transferred to the catch clause for that exception of the first enclosing try […]

Read More

Exception handling in Java?

November 26, 2014

Exception handling plays a crucial part in mastering Selenium, and designing Frameworks, thus we thought of digging deeper into this topic.We have also discussed about ways of handling Exceptions. Let’s begin with keynotes before starting with the detailed explanation:- An exception is any event, which interrupts the normal flow of the program execution. ‘Throwable‘ class is […]

Read More

Learn Object Spy in UFT

November 21, 2014

Hello Friends!! My name is object spy. You can find me in my new avatar of hat and goggles in UFT. Today I am going to tell you about myself. My new look  Introduction to Object Spy? I am an inbuilt tool which comes bundled with UFT, I help automation testers with following capabilities:- You […]

Read More

How to implement Highlight in Selenium WebDriver?

November 20, 2014

Highlight is the most prominent feature used in Object Spy in UFT/QTP. But the question comes into our mind can we have the same facility in Selenium also?.Answer is YES!! I want to highlight object in selenium Why we use Highlight?Highlight plays crucial role in  debugging of  test script. One way to know steps being […]

Read More

What is JavaScriptExecutor in Selenium?

November 18, 2014

What is JavaScriptExecutor?JavaScriptExecutor is an interface which provides mechanism to execute Javascript through selenium driver. It provides “executescript” & “executeAsyncScript” methods, to run JavaScript in the context of the currently selected frame or window.  Lets inject Javascript into Browser using Selenium Why we use it?To enhance the capabilities of the existing scripts by performing javascript […]

Read More

Working with Action Interface in Selenium

November 17, 2014

To perform Advanced User Interactions, like drag and drop, keyboard events; selenium came up with Action and Actions interface under a  comprehensive API, named as Advanced User Interaction which facilitate user actions to be performed on a application. Thus users can use this API to simulate usage of keyboard or mouse events. Lets do some […]

Read More

Let’s learn JavaScript Hoisting

November 16, 2014

When was the last time, you encountered confusing questions on “JavaScript Hoisting” in your interview? Not very long back if you are looking for change 🙂 Today’s topic is very simple, but most misunderstood concept in our coder’s fraternity. Lets try to learn sharpen our concepts and be ready to face the interview panel with […]

Read More

How to work with IFrame in Selenium.

November 14, 2014

Scenario:–Our application has a iFrame control, how we can work with this control using Selenium. Learn to solve the iFrame puzzle in selenium Solution:-Lets try to understand iFrame first.What is iFrame?An iFrame (or Inline Frame) is an HTML document embedded inside the current HTML document on a browser application. It is utilized to insert content […]

Read More