<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>QTP Scripts and Selenium Webdriver Scripts</title><description>Qtp Scripts,Selenium scripts,Telugu Songs Lyrics,Latest Telugu Songs Lyrics,Selenium Webdriver scripts,Selenium examples,Quick Test Professional,Automation Testing,QTP,Quick Test Professional(QTP),Quick Test Pro,Descriptive Programming in QTP,DP,Testing Interview Questions,QTP Scripts,QTP Basic Scripts,Testing,Testing Resources,QTP Basics,QTP Beginners,QTP Blog,Selenium sample scripts,basics of selenium,basics of selenium webdriver</description><managingEditor>noreply@blogger.com (F n K)</managingEditor><pubDate>Thu, 5 Mar 2026 00:55:48 +0530</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">226</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://funandknowledge.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Qtp Scripts,Selenium scripts,Telugu Songs Lyrics,Latest Telugu Songs Lyrics,Selenium Webdriver scripts,Selenium examples,Quick Test Professional,Automation Testing,QTP,Quick Test Professional(QTP),Quick Test Pro,Descriptive Programming in QTP,DP,Testing I</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Writing data to text file using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/writing-data-to-text-file-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:33:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5103719447233100216</guid><description>
package selenium_examples;
import java.io.BufferedWriter;import java.io.FileWriter;import java.io.IOException;
public class Test{
&amp;nbsp;public static void main(String[] args) throws IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; BufferedWriter bw = new BufferedWriter(new FileWriter("E:\\test.txt"));&amp;nbsp;&amp;nbsp; bw.write("Helloooo");&amp;nbsp;&amp;nbsp; bw.newLine();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><title>Selenium Webdriver Scripts - Executing multiple sql queries using JDBC</title><link>http://funandknowledge.blogspot.com/2014/01/selenium-webdriver-scripts-executing.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:32:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-7093693836928452421</guid><description>
package selenium_examples;
import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;
public class Database {
&amp;nbsp;public static void main(String[] args) throws ClassNotFoundException, SQLException {&amp;nbsp;&amp;nbsp;Class.forName("org.postgresql.Driver");&amp;nbsp;&amp;nbsp;Connection con = DriverManager.getConnection(dbUrl,</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Selenium webdriver - How to get inner text of the cell of a html table</title><link>http://funandknowledge.blogspot.com/2014/01/selenium-webdriver-how-to-get-inner.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:31:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5136563814098754858</guid><description>
package selenium_examples;
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;
public class Example {
&amp;nbsp;public static void main(String[] args) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;WebDriver driver = new FirefoxDriver();&amp;nbsp;&amp;nbsp;&amp;nbsp;driver.get("http://www.w3schools.com/html/html_tables.asp");&amp;nbsp;&amp;nbsp;&amp;nbsp;String text=</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg28WQMwp2gor_kBBIwONd2kI1ycr7G3XEx_nZyHUsH8UlkYHs2zQCCTQYvvlmKAwbcJxEWyX8fIpOjM7EyhbOk9FWEXbqAMX4OOp48fK-ccX7kGtNF50QyoXoS_azL0S8sDveKBJ4oR-w/s72-c/working+with+webtables+using+selenium+webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Reading data from notepad/text file using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/reading-data-from-notepadtext-file.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:29:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-3962713812114826783</guid><description>
package selenium_examples;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Test{
&amp;nbsp;public static void main(String[] args) throws IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileReader r = new FileReader("E:\\test.txt");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to write data to doc file using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-write-data-to-doc-file-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:27:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-3600581263228772136</guid><description>
Writing data to doc file using selenium webdriver

package selenium_examples;
import java.io.BufferedWriter;import java.io.File;import java.io.FileWriter;import java.io.IOException;
public class Test{
&amp;nbsp;public static void main(String[] args) throws IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; File file = new File("E:/test.doc");&amp;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>How to write data into excel sheet using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-write-data-into-excel-sheet.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:26:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-7096272345720201183</guid><description>
package selenium_examples;
import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;
import jxl.Workbook;import jxl.write.WritableSheet;import jxl.write.WritableWorkbook;import jxl.write.Label;import jxl.write.WriteException;import jxl.write.biff.RowsExceededException;
import org.openqa.selenium.By;import org.openqa.selenium.Keys;import </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to send keyboard keys combination in selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-send-keyboard-keys-combination.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:24:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-6488719522204655153</guid><description>
package selenium_examples;
import org.openqa.selenium.By;import org.openqa.selenium.Keys;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;
public class Example {


&amp;nbsp;public static void main(String[] args) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;WebDriver driver = new FirefoxDriver();&amp;nbsp;&amp;nbsp;driver.get("http://www.google.com");&amp;nbsp;&amp;nbsp;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi39ae4EWm60xkk1SQMcpKsgcegJKEjfP7g4VyylZeJDYVyh33_I9MT0CCnOvTCM9cefa9t6U52wocS1HI9Yj7p4GrBEnCZDMi2U9sWkMAWJiNwTPSXvySZfZO_9dvdmXRhgwP4p3Kke2g/s72-c/keyboard+keys+combination+in+selenium+webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to Read data from doc file using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-read-data-from-doc-file-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:20:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-6788401756684164244</guid><description>
Reading data from doc file using selenium webdriver.
package selenium_examples;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Test{
&amp;nbsp;public static void main(String[] args) throws IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp;FileReader r = new FileReader("E:\\test.doc");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BufferedReader bfr = new BufferedReader(</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to get Row Count in a table using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-get-row-count-in-table-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:17:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-7348019003929112733</guid><description>
Script to count no. of rows in a table using Selenium Webdriver
package selenium_examples;
import java.util.List;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;
public class Example {
&amp;nbsp;public static void main(String[] args) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;WebDriver driver = new </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to get excel sheet rows and column count using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/how-to-get-excel-sheet-rows-and-column.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:14:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-3291247059358819096</guid><description>




package selenium_examples;
import java.io.FileInputStream;import java.io.IOException;import jxl.Sheet;import jxl.Workbook;import jxl.read.biff.BiffException;
import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;
public class Sample {
&amp;nbsp;public void login() throws BiffException, IOException, InterruptedException&amp;nbsp;{&amp;nbsp;&amp;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg79NqX_1Nt-8FbOS9KxdpeElXg8A0Sjfaa_Ny0-EtWMpogHluFtbcLoBToVO41Kc_h77cN7tijyCU8R_2DtrlWn-aBzIqSEI7QU-CTDYtseA8MTxMawrsJHcLugZHE8BCBF2vGl0xEaz8/s72-c/Selenium+Webdriver+-+Excelsheet+Row+and+Cloumn+count.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Drag and Drop in Selenium Webdriver</title><link>http://funandknowledge.blogspot.com/2014/01/handling-drag-and-drop-actions-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:10:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-7011139823368496340</guid><description>
Handling "drag and drop" actions using WebDriver (Selenium 2)

package selenium_examples;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;

public class Test {




&amp;nbsp;public static void main(String[] args) {


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjUpkgD5J0ULBznjxcc0IofsZB4ZoqbzjiLvnXfNq1mAhBXcaDMjwRBUT81UxOlkLOcLpPLvWQQOy2h3POnHrLKXCKQNwAcd7LluuED-gp3p99VMrv7iHdusfE07xzI6QMDuXwi5whjjM/s72-c/dragAndDrop+in+Selenium+Webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Connecting to DataBase using Selenium WebDriver</title><link>http://funandknowledge.blogspot.com/2014/01/connecting-to-database-using-selenium.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Wed, 1 Jan 2014 17:08:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-2720828286466782879</guid><description>
Selenium Webdriver Script to connect postgresql database.

package selenium_examples;
import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;
public class Database {
&amp;nbsp;public static void main(String[] args) throws ClassNotFoundException, SQLException {&amp;nbsp;&amp;nbsp;Class.forName("org.postgresql.Driver");&amp;nbsp;&amp;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Datadriven testing using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/11/package-seleniumexamples-import-java.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sun, 10 Nov 2013 20:44:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5172254295639300315</guid><description>





package selenium_examples;


import java.io.FileInputStream;
import java.io.IOException;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikzUlEkN6VZ9oJ7SnUg5aDWXcu2Fe3jhyzNqbg-8Hv97VzhRajen61A48c__2et3fF2B4-Rq50wzr2fwQHnP0Yg2LFXpwleuw3jUX4bNIjBEtowPX5L_U9fDakhG-c3Voza8WZuLUXXHA/s72-c/Datadriven+in+Selenium+Webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Selenium Webdriver Scripts : Working with Calendar using Selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/11/selenium-webdriver-scripts-working-with.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sun, 10 Nov 2013 20:40:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5234182122909609940</guid><description>
Selenium webdriver script to select current month date and next month date through calendar.

package selenium_examples;

import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.firefox.FirefoxDriver;

public class Sample {

   public static void main(String[] args)
   {
    WebDriver driver = new FirefoxDriver();
    driver.get("http://</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXfp846dMst7motW-sPd_DOoxDIYBORkGCNNk27xJNxiAvIsQ-hLmcrtP2XgZ7ulHyPE4XOUH_fcm-sbHLLlBQWNZWDCn6CdxvCjBgiPqq_XWv4QWUXadASssZ0tKTD_VWGv8Sj0IGFTo/s72-c/cal+output.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Data Driven Testing for Login Functionality using Selenium Webdriver </title><link>http://funandknowledge.blogspot.com/2013/11/data-driven-testing-for-login.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sun, 10 Nov 2013 20:37:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-197287538213194539</guid><description>

Below is the code for Mercury Tours Login functionality using Selenium WebDriver.
We are Providing Login Details from Excel Sheet.





package selenium_examples;


import java.io.FileInputStream;
import java.io.IOException;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbUpW5SmCbv_A4H046ZjE7tFZ7yW-Z2Y-cXV0X__aby8EaZ_Z6iQrSkKADArhHwY_MvuDnGLXdg9vrGTwTurVkwGC0ikbSVxmlVGUBuS06Pi-M5y_nTssMcR2NPlHcskTtosc_q28zT8/s72-c/Datadriven+Testing+for+Login+-Selenium++Webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to get auto populated Search results using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/11/how-to-get-auto-populated-search.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Fri, 1 Nov 2013 20:49:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-3493830316462476051</guid><description>
How to get auto populated Google search results?

package selenium_examples;

import java.util.Iterator;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {

   public static void main(String[] args)
   {
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmPtwj8N_hyphenhyphen5zMN9yaNiwrhaKuYyW12Hb9lsDOLzbj8IXm3zmIanaXwAksK2YMiaE6S4nQ2DdHitnnQASb3PMhyphenhyphenlC1prPJjjWX1UpxmS7ONBzbFc9Bt9-DF3dIuw62wC1FjrYSK0HiFTM/s72-c/auto+populating+or+suggestion+in+selenium+webdriver.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to upload files using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-upload-files-using-selenium.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 19:47:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5437734222560784393</guid><description>

package selenium_examples;


import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {

   public static void main(String[] args)
   {
    WebDriver driver = new FirefoxDriver();
    driver.get("http://www.files.com/");
    </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiED5JJVrrTKnSRy5jZJFrt7xHrEUKicA-b35EoA7ORDc93oXxW3I5-lZ4r2y3wUGwhe7bRHb5XppCJZ5ZumEhdQJfp7-8OAr9Gio0M0icUSXB8768Cq5VvXmHBFBjVYv7oKLNssremJMM/s72-c/upload+image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to scroll down the page through Selenium Web Driver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-scroll-down-page-through.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 19:45:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-7884767762085135563</guid><description>
Page Scroll down script using selenium webdriver

package selenium_examples;


import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {

   public static void main(String[] args)
   {
    
    WebDriver driver = new FirefoxDriver();
    driver.get("http://</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to right click on a link and open link in  new tab using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-right-click-on-link-and-open.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 19:45:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-8022643979878952038</guid><description>
Script1:-

package selenium_examples;

import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;

public class Sample {

   public static void main(String[] args)
   {
    
    WebDriver driver = new FirefoxDriver();</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnyGQ2C0pWCVLmN2CpOUAgKIUYO2Y-etfVICUh40C4d4JEmPp7JHxQnxFXTYF5yxXndJVpt226pESW5yMgkG2l5amhzdTPAwHAv36oichIEkZh2RAxAGAUGaMCKBfF6XduNCAoUq6h6mA/s72-c/google+about+link.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to highlight an element using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-highlight-element-using-selenium.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 19:41:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5579474687652439226</guid><description>
Script to highlight element border

Script1:-

package selenium_examples;


import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {

   public static void main(String[] args)
   {
    
     WebDriver driver = new </description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjZD-t9ZFcsXdEnpKIPh800eXl6KAhijJsKomwE1zQex20wJDnh8n1QBTcqv1v3FA_BmRZoXOhxiF6-9tZXb5XSsw5jdYXNRjYt9yeUA0ifNRPke3Kz5xTRwfts17_hqHou_tmKmjmZeM/s72-c/highlight+element.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to get x and y coordinates of an element using Selenium Webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-get-x-and-y-coordinates-of.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 18:54:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-4747798176177693202</guid><description>
package selenium_examples;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Sample {

   public static void main(String[] args)
   {
    
    WebDriver driver = new FirefoxDriver();
    driver.get("http://google.com");
    System.out.println("X Position= "+ driver.findElement(By.name("btnK")).getLocation().getX</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to get Height and Width of an image or element using Selenium Webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-get-height-and-width-of-image-or.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 18:36:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-2608697151220305050</guid><description>

Selenium webdriver script to get Width and Height of an Image

Script1:-

package selenium_examples;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Sample {

   public static void main(String[] args)
   {
    
    
    WebDriver driver = new FirefoxDriver();
    driver.get("http://newtours.demoaut.com/");
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir0MPqELb9JTGbBmH6x6rSq2Aim3Oz_5LaMyaxcPEkH9LVXJ3GagNnRYyJx3ZJxLvhyIzqROrGgJv3MSg487Hr54zjC_denYdZ8L1L6Jl9l-wAGUqcHMHIWkue5dekFsiEvyOWafTR8KM/s72-c/Mer+tours+image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to find total number of checkboxes in a page using selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-find-total-number-of-checkboxes.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Sat, 26 Oct 2013 18:34:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5021375042172474370</guid><description>
package selenium_examples;

import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;


public class Sample {

   public static void main(String[] args)
   {
    
    WebDriver driver = new FirefoxDriver();
    driver.get("http://www.google.co.in/preferences?hl=en#languages"</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrwBpsEHWfE3An8Am1URsK05jK3-Aaqj7DOPlJgcJnzW9pIJGqqMVUplBaQHX8mI22dU5N5L0I0f2068BtbMLTQSQ9PwE__afzRi9N4fAKNOHJE4djnOJlDcu9u_xlR9UD7IRAXEzeqiA/s72-c/Counting+checkboxes+in+page.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>How to extract number of links and text of links of a page using Selenium WebDriver</title><link>http://funandknowledge.blogspot.com/2013/10/how-to-extract-number-of-links-and-text.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Fri, 25 Oct 2013 21:59:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-2709128334920399866</guid><description>
package selenium_examples;
import java.util.List;import java.util.concurrent.TimeUnit;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.WebElement;import org.openqa.selenium.firefox.FirefoxDriver;
public class Sample {
&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void main(String[] args) &amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Handling Alerts or Popups using Selenium webdriver</title><link>http://funandknowledge.blogspot.com/2013/10/handling-alerts-or-popups-using.html</link><author>noreply@blogger.com (F n K)</author><pubDate>Fri, 25 Oct 2013 21:53:00 +0530</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-6139068054528692587.post-5309692167886952466</guid><description>
package selenium_examples;

import java.util.concurrent.TimeUnit;import org.openqa.selenium.Alert;import org.openqa.selenium.By;import org.openqa.selenium.WebDriver;import org.openqa.selenium.firefox.FirefoxDriver;
public class Sample {
&amp;nbsp;&amp;nbsp; public static void main(String[] args) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK1rR0hyphenhyphenMk6d4gX1MniHP87fI3JFb01L8dX_HFi5jxOfZDEp5Dz1K778wODfm8FpmNi7-cHtwHSNArl6Nri4rcAtYcXqkv7mDm6tSIxr1xHvW2hLgPLLxJXqDtD8KEh2W3rSFouGIoSUc/s72-c/handling+alert+or+popups.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>