How Selenium supports Writing of Excel File?
Writing of Excel file can be achieved with the help of API called JXL. Currently JXL only support xls type file.
Steps to download jxl2.6 jar file and configure in the Project
Step1: Go to the URL:-http://www.findjar.com/jar/net.sourceforge.jexcelapi/jars/jxl-2.6.jar.html...
Sunday, 24 April 2016
April 24, 2016
Write Data in Excel using Selenium JXL
Saturday, 23 April 2016
April 23, 2016
Read Excel file in Selenium using JXL
How Selenium supports reading of Excel File?
Reading of Excel file can be achieved with the help of API called JXL. Currently JXL only support xls type file.
Steps to download jxl2.6 jar file and configure in the Project
Step1: Go to the URL:-http://www.findjar.com/jar/net.sourceforge.jexcelapi/jars/jxl-2.6.jar.html...
April 23, 2016
Handling Keyboard Events in Webdriver
What are keyboard events?
Keyboard events are actions that can be performed with keyboard such as Alt F4, Shift "A", Control+Alt+Delete.There may be scenarios were we need to perform typing like a keyboard in certain fields
How Selenium handles keyboard events?
Selenium offers Action class in order...
Friday, 22 April 2016
April 22, 2016
Handling Mouse Events in Webdriver
What are mouse events?
Mouse events are actions that can be performed with mouse such as double click, drag and drop, click and hold.There may be scenarios were we need to perform mouse hover to see the calender etc..
How Selenium handles mouse events?
Selenium offers Action class in order to handle...
Sunday, 17 April 2016
April 17, 2016
Generate Logs in Selenium
What are Log files?
Log files are check points that can be added at any step of code.Logs gives us detailed reasoning of any step failure .To see logs we first need to download Log4j jar file.
Steps to Configure Log4j in Selenium
1-Go to http://www.java2s.com/Code/Jar/a/Downloadapachelogginglog4jjar.htm
2-Download apache-logging/apache-logging-log4j.jar.zip(...
April 17, 2016
Setting up a Selenium Webdriver Project
How To Setup a Selenium WebDriver Project in Eclipse ?
Creating a Simple Selenium – Java project in EclipseThis post will help the selenium users-Beginners to setup the selenium project and execute a simple WebDriver script
Steps To Create a Selenium Project in EclipseStep 1: Download EclipseStep...
April 17, 2016
Implicit vs Explicit wait in Selenium
Why using waits in selenium?
When a web page is loaded the elements within a page may load at different time intervals, this makes locating element a bit difficult , if element is not present in the DOM it will raise ElementNotVisibleException. To solve these selenium has provides us 2 types of waits
Implicit...
Saturday, 16 April 2016
April 16, 2016
Scroll into View in Selenium
Scroll down to a view on a webpage in Selenium
How selenium supports scrolling down on a page?
Consider a web application, some times some text is visible towards bottom of a page so we need to scroll down to a page to see the text
Selenium provides JavaScript Executor interface which will allow...
April 16, 2016
Assertion in Selenium
How to verify the Results?
Why Assertion and how Selenium support Assertion?
Assertion is needed to verify that web application which consist of UI elements such as text menu, check box, button, combo box ,text field are correct or not
It is used to verify Actual and Expected Output
Assert...
April 16, 2016
Selecting a option from Dropdown List in Selenium
How to select option from Drop Down List
How Selenium supports DropDown List?
Selenium webdriver provides a class called Select from package "org.openqa.selenium.support.ui.Select
Drop down Menu
Interestingly Select Class has 3 methods by which dropdown list values can be selected they are
selectByIndex():Selection...
April 16, 2016
Handling Popup in Selenium
How to handle popups of any Website
What are popups?
Popups are launched automatically from the website and they act as a Interruption
Popups windows are basically of 2 types
HTML( Act like a new Frame)
Non-HTML( Act like a Alert)
In order to differentiate between them just inspect the popup...
Friday, 15 April 2016
April 15, 2016
Capture Screenshot in Selenium
How to Capture Screen Shot in Selenium
Why taking a screenshot?
Screenshot helps to understand the flow of the Application
For the failed cases screenshot helps to understand on which page the Test case has failed
Screenshot is taken to track the execution of Test Cases
The following...