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

Explain in selenium ide how can you debug the tests?

858


Write the code for reading and writing to excel through selenium?

917


How testing is better than junit?

876


How you can convert any selenium ide tests from selenese to another language?

1126


Which is the command used for displaying the values of a variable into the output console or log?

951


What are heightened privileges browsers?

1067


How selenium grid works?

934


How you can debug the tests in selenium ide?

1014


How to developer selenium test cases?

922


How can I learn to automate testing using selenium?

927


Mention what is intellij?

932


Why testers should opt for selenium and not qtp?

869


How to execute javascript in selenium?

1033


List the advantages of webdriver over selenium server?

949


What does a right-pointing green triangle at the beginning of a command in side indicate?

1411