Showing posts with label Learn Selenium Webdriver Online. Show all posts
Showing posts with label Learn Selenium Webdriver Online. Show all posts

So in last article we have seen how to locate the WebElement using four locators and those are Name, Id, Partial Link Text and Link Text. Now in this article we are going to see the remaining four locators. Let’s start looking at them one by one.

Locating element By Xpath:
Xpath functions are very useful functions, it help to identify the Elements from its root node as well as from anywhere in the page. As HTML can be an execution of XML (XHTML), Selenium clients can use this amazing language to target WebElement in their web applications. XPath goes beyond (and additionally supporting) the straightforward techniques for situating by id or name attributes, and opens up a wide range of new conceivable outcomes, for example, finding the third checkbox on the page.

In this article, we are going to see how we can locate the web element to perform an action on it. Web element is the elements which are present on a webpage. Button, link, images, text boxes etc. this all are called as web element.

So why do we need to locate the WebElement? The simple answer for this question is, we need to locate the address of each WebElement on which we want to perform actions. Actions like entering the text, copying the text, pressing the buttons etc. actions 

By reading the above paragraph, we hope that you got an idea why we need to locate the WebElement. Now let’s see how we can locate the WebElement.

Today we are going to see the basic things which we are going to use while making the selenium WebDriver scripts using python language. So below is some short example which we are going to see the uses of each line statement

From selenium import webdriver

From selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox ()

driver.get ( "" )

Assert "Python" in driver.title

Element = driver.find_element_by_name ( " address of webelement " )

Element.clear ()

Element.send_keys ( "content text" )

Element.send_keys ( Keys.RETURN )

Assert "No results found." not in driver.page_source

driver.close ()

The above script can be saved to a file (eg: - ), then you can use it like this

Selenium webdriver software testing tool tutorials on Advanced User Interactions API, Advanced TestNG Tutorials for webdriver software testing tool, AutoIT software testing tool With Selenium WebDriver Tutorials with practical examples on software web application. Before going for selenium advanced tutorial, I recommend you selenium tutorial for beginner to start from basic.

Selenium Advanced Tutorial


Software testing industry is growing day by day and usage of selenium webdriver in software testing process is also increasing very fast. It is very important to learn selenium webdriver if you wants to stay on top in software testing industry. Bellow given selenium webdriver tutorials will helps you to learn selenium webdriver and usage of testng with selenium webdriver to automate any software web application.

WebDriver Basic Action Commands With Example

Selenium webdriver is widely used open source automation testing tool in software testing industry which automates browsers. It is very compact object-oriented API which drives browsers natively on local or remote machines just like user interacts with browsers. If you look at the top trending automation testing tools, Selenium Webdriver is on top spot from last 10 to 12 years. It is being used by small scale companies to giant MNCs. As you know, Manual testing takes lots of time and efforts when your web application testing task is repetitive. Selenium automation will reduce your testing time and cost as you need to write selenium script just once and you can use those selenium automation testing scripts again and again whenever required. You can use those scripts mainly for regression testing of web application.

I am suggesting you to first Learn Selenium IDE From This Page and then start bellow given selenium tutorial. 
Selenium Tutorial

Selenium is free and supports many different languages like selenium Java, Python, Pearl, Ruby, PHP and C#. Selenium with java and selenium with python needs special mention here as both these languages are more popular than the other languages in selenium automation. To learn selenium with java, You should have java coding basics knowledge. If you are fresher then you should start java for beginners tutorial and then you can move to selenium tutorial. I have prepared very good set of java beginners tutorials for selenium learners which can help you to boost your java basics. Once you learn java basics, You can start with java advanced tutorials set.