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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we get a text of a web element?

861


i am a 2013 BE and 2015 M.tech passed out.i have taken course in manual testing with selenium automation.i have confident that, i have required technical knowledge in manual as well as automation.now my problem is whether to go as fresher or keep 3 years of experiance.there are very few interviews to call 2013 b.tech and no calls for M.tech...!!is it make any problem, if i keep fake.please let me clear my doubt

1389


How to read a javascript variable in selenium webdriver?

903


What are the programming languages supported by selenium webdiver?

898


How we handle pop-up web-based ?

1006


What are different types of locators?

840


What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?

837


Explain what is the difference between borland silk and selenium?

877


List the different types of drivers in webdriver.

833


What is the syntax of finding elements by id using css selector?

881


What is the wait?

899


How do you simulate scroll down action?

937


How can one get side to always record an absolute url for the open command's argument?

920


How can we launch different browsers in selenium webdriver?

911


How can we fetch title of the page in selenium?

865