• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Selenium WebDriver Features

Selenium WebDriver and its Features

2we can work on all the latest versions like firefox 27,Id10,google chrome 17,safari 5 and opera 18.

2By using selenium rc all the  browser can be launch but it is having the version limitations [google chrome  22, selenium rc,safari 5]

2Not necessary to start the selenium server to run the webdriver programs.

2It is lanches only one browser .it means it won’t launch the command history browser.

2Web driver directly maximizes the browser not necessary to use window maximize command.

2By default web driver maintains the pageload synchronization.If it is page refresh we need to hadle  it by using threa.sleep

2It is having the auto scrolling documents option into the application while executing the script

2we can maintains both RC scripts & web driver scripts in a single package or process.

2we can maintain both RC load & webdriver load in a single class.

2we can take the data from the application very effectively by using web driver for validation.

**How to launch an the browser like firefox,safari,opera,google chrome &it ?

Public class all browsers {

Public webdriver driver;

Public void firefox(){

Driver =new firefox driver();

Driver.get(http://spicejet.com);

}

Public void safari(){

Driver = new safari driver();

Driver .get(http://spicejet.com);

}

Public void opera(){

Driver =new operadriver();

Driver.get(http://spicejet.com);

}

Public static void main(string[] args) {

All browsers a=new all browsers();

a.firefox();

a.safari();

a.opera();

}

Aspired to become a Selenium Developer? Explore the post to discover the know-hows on Selenium Training Online.

2How to launch Google chrome browsers?

2To launch Google chrome ,chrome driver exe file should be available ,we can download it from the below site

http://chrome driver stories.googleis.com?index.html

2click on 2.9 folder [latest version] and download chrome driver –win32.zip.

2After downloading the above file ,copy the chrome driver exe file and placed in lib folder.

Public void chrome(){

System.setproperty(“webdriver.chromedriver”,”E:\\web\\chrome driver. Exe”);

Driver= new chrome driver();

Driver .get(http://spicejet.com);

}

2How to launch IE browser

2To launch IE, the IE driver server should be available ,we can download it from the below site

http://docs.seleniumfig.org/download/

2Based on the system type(32/64 bit) download the window

2After downloading the file copy the same exe file and place it in lib folder.

Public void IE(){

System.set property(“web driver.ie.driver”,”E:\\IE driver server.exe”);

Driver = new internet explorechrome();

Driver.get(“http://spicejet.com”)  ;

}

Public static void main(string [] args){

All browser a=new all browser();

a.ie();

}

Check out the top Selenium Interview Questions now!

**write a program to register into mail.in .doc by using web driver.

Public class register-wd{

Public web driver driver;

Public void open url(){

Driver = new firefox driver();

Driver.got(http://mail.in.com);

}

Public void register() throws exception{

Driver.find element(by.css selection(“input.registernow”)).click();

Driver.find element(by.id”fname”)).sendkeys(“nagesh”);

New select (driver.find element (by.id(“day”))).select by visible tex((“10”);

Thread.sleep(1000);

Driver.find element(by.xpath(“(//input[enal=”ra dinner])[1]”)).click();

Thread.sleep(2000);

For an Indepth knowledge on Selenium, click on below

Summary
Review Date
Reviewed Item
Good Resource on Selenium WebDriver Features
Author Rating
4

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Selenium WebDriver Features"

Leave a Message

Your email address will not be published. Required fields are marked *

Site Disclaimer, Copyright © 2016 - All Rights Reserved.