Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you fetch the data from the excel



How do you fetch the data from the excel..

Answer / govind

1.To get data fr excel sheet first we need to configure our selenium project with Apache pai jar file

2. Then we have to create execl sheet
3. Then we have to create object of Fileinpuststream class that accept path of execel sheet file.also return type Is file and we have store in one variable

4. After that we have to use create method to open excel sheet which is present in workboofactory class

Workboofactory.create(file)

5.now to navigate for specific sheet present in Excel we use getsheet method which accept string value that is name of sheet
Workbookfactory.create(file).getsheet("sheet name")

6.after that from which row you want data we have to navigate to that row by function getrow.

7. After that you have to navigate to column using function getcell
So finally depending upon type of data present in Excel we use
1.String cell value for stringdata
2. Neroc sell value data
3.boolean cell value da🙏🙏🙏🙏🙏🙏

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the different type of locators?

2 Answers   Genpact,


How to find more than one web element in the list?

0 Answers  


What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?

0 Answers  


Explain what is the difference between find elements () and find element ()?

0 Answers  


To generate pdf reports mention what java api is required?

0 Answers  


How to change the url on a webpage using selenium web driver?

0 Answers  


What is the purpose of creating a reference variable- ‘driver’ of type

0 Answers  


What / supported operating system platforms Selenium?

0 Answers  


What is the main difference between the close() and quit() methods?

0 Answers  


How to handle a dropdown in selenium webdriver?

0 Answers  


List some scenarios which we cannot automate using selenium webdriver?

0 Answers  


How do you click on a menu item in a drop down menu?

0 Answers  


Categories