Selenium Tutorials

If you are a beginner, please Proceed here to start from the beginning.

Synchronization in Selenium Webdriver

It is a mechanism which involves more than one components to work parallel with Each other.

Generally in Test Automation, we have two components
1. Application Under Test
2. Test Automation Tool.

Both these components will have their own speed. We should write our scripts in such a way that both the components should move with same and desired speed, so that we will not encounter "Element Not Found" errors which will consume time again in debugging.

Synchronization can be classified into two categories:

Selenium webdriver using Eclipse

To start selenium scripting with Eclipse, you need to first install Java Development Kit (JDK) Download and Install Java

Installing eclipse is very easy, First download eclipse . The downloaded file should be a .zip file. Place it in a folder and ensure that you have full read and write permissions. Try to create a shortcut of the eclipse executable file.

How to Run Webdriver in chrome browser?

Normally to run webdriver, we just need a browser and a selenium server jar file. Selenium 2 by-default supports Mozilla Firefox browser. Then the next question come to your mind is How to run webdriver in other browsers.

Selenium supports to run webdriver in other browsers by just adding an .exe path of the driver server for the individual browsers.

Locators for Selenium

Selenium webdriver uses 8 locators to find the elements on web page. The following are the list of object identifier or locators supported by selenium.

We have prioritized the list of locators to be used when scripting.

id Select element with the specified @id attribute.

Name Select first element with the specified @name attribute.

Linktext Select link (anchor tag) element which contains text matching the specified link text

Basic HTML concepts required for Selenium

What is HTML?

As you know HTML Hyper Text Markup Language used for describing web pages. The basic structure of an HTML document includes tags, attributes and elements.
Each tag represents a document content. HTML contains tags with angle brackets like <html > and plain text. There are two tags one is start tag and second tag is end tag. Every tag should end with a forward slash before the tag name.

Syntax:

Introduction to selenium

What is Selenium?

Selenium is a web Automation tool which can used to perform testing ONLY on Web Applications not Desktop based applications.

There are others tool which can be used to automate both web applications and windows applications like QTP (Quick Test Professional) . As every one aware that QTP is Licensed Tool AND Selenium is Open source tool, download it configure it and enjoy.