Selenium Tutorials

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

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.