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 |
How to check if a button is enabled on the page?
Give ide's main parts and components?
How to set the size of browser window using selenium?
Explain xpath absolute and xpath attributes.
How to run a group of test cases using testng?
How can we launch different browsers in selenium webdriver?
What’s new in selenium 3.0?
How do you upload a file?
What is a hub in selenium grid?
What are the different components of the selenium?
How can one get side to always record an absolute url for the open command's argument?
How can we maximize browser window in selenium?