How to access data or elements from xls file using cucumber (Selenium Web driver)

Hi All

I have kept xpath and links under xls and I want to access them using cucumber framework.  Can I know how to do this.

Example:-
I have kept  xpath of email address, and password fields in xls and use them to enter the details. Can someone tell me how to access these xpath using xls with cucumber.

zednic20 Default Asked on June 9, 2015 in Selenium WebDriver.
Add Comment
2 Answer(s)

There is nothing that Cucumber can do in here. What you need is to understand the working of Apache POI

follow the set of three tutorials here
http://www.toolsqa.com/selenium-webdriver/download-apache-poi/

Virender

Virender Singh Professor Answered on June 9, 2015.
Add Comment

Hi Virender

Can you show me, how to achieve that..I just want to see integration of xls with feature file scenario.
Small example would be nice to understand this.

E.g.  Sign in scenario in feature file and keeping username,  password , xpath and data in xls file and interacting with cucumber feature file.

zednic20 Default Answered on June 9, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.