I need help to build data driven framework for WATIR Webdriver. Here my concern is, can we build data driven framework by reading data from excel in Watir-webdriver as we have option in Selenium+Testng framework
Can anyone help with this?
Frameworks like Selenium and Watir itself do not provide functions to get data from sources like Excel. They are designed to automate and drive web-browsers with method that simplify this process.
As with most automation frameworks you combine them with a programming language and a test-runner. For most programming language Excel reading libraries are available, for Ruby this would be something like spreadsheet read the example guide.
So your data driven test framework would combine all four: Watir, testrunner, Excel library and programming language.
As you are also using Cucumber I would also have a look at the follow SO post: https://stackoverflow.com/questions/20955361/importing-csv-as-test-data-in-cucumber