RE: Can we use page factory technique using property file

I am thinking that is there any way to use page factory technique  &  load object from property file

Abhijit Train Asked on September 9, 2015 in Selenium WebDriver.
Add Comment
4 Answers

It depends on  what you want to load from property file

Reviewer Answered on September 9, 2015.

I want to load object’s details like identifier & value .

for eg. the structure of property file will be as below

LOGIN_USERNAME=Xpath://input[@data-bind=’value: userName’]

So, in above example  ‘LOGIN_USERNAME’ is object name , ‘Xpath ‘ is indentifier & “//input[@data-bind=’value: userName’]” is  that object’s xpath value. Hope you understand.

on September 9, 2015.
Add Comment

Your Answer

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