In Keyword-Driver Framework, Object Repository file used in framework here is Text File and it includes only webelements located by “Xpath”. In Text file locators are not specified, so how web-driver locates element while execution? If locator is used as id/name/tag, how to deal with this situation?

In Keyword-Driver Framework, Object Repository file used in framework here is Text File and it includes only webelements located by “Xpath”. In Text file locators are not specified, so how web-driver locates element while execution? If locator is used as id/name/tag, how to deal with this situation?

Add Comment
1 Answer(s)

Xpath is also a Locator. Every element should have some Xpath.
Either we have to use Absolute or relative Xpath.

If Xpath is not working for specific element, we have to use name/id/tag.
but we have to replace that in object repository file.

SEuser Default Answered on May 20, 2015.
Add Comment

Your Answer

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