RE: Can’t we use excel as an object repository for Selenium..?

Answered

I am curious to know that while implementing automation framework using selenium webdriver, why cant we use excel as an object repository and why everyone is using PageObject or property file to store all locators. I am thinking like if we use excel to save all element locator by pagewise then it is easy to keep all locators at one place/one excel and if required we can easily change the locators-path too.

Though i am looking for suggestion before going ahead and implementing the same and if there is any disadvantage to using excel.

Add Comment
3 Answers

Hi Ajay,
I am using excel as an object repository where I keep all my locators and test cases in excel.
It works well. You need to be careful while reading and writing the excel and closing the streams appropriately.
I haven’t found any disadvantage yet.

Thanks.

Regards,
Ashwin Karangutkar

Train Answered on July 14, 2015.
Add Comment

Your Answer

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