aquality-automation / aquality-selenium-core-dotnet

Repository contains core abstract implementations for children aquality projects like aquality-selenium, aquality-mobile, aquality-winappdriver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support other locator types in ElementFactory

mialeska opened this issue · comments

Currently only XPath locators for multiple elements are supported.
Although some locator types could be converted to XPath:

By.name("awesome") -> By.xPath("//[@name='awesome']") (please note that this is for web, e.g. for desktop xPath would be //[@name='awesome'] according to https://github.com/microsoft/WinAppDriver/blob/master/Docs/AuthoringTestScripts.md )
By.id("awesome") -> By.xPath("//*[@id='awesome']")
and so on

Same issue in java:
aquality-automation/aquality-selenium-core-java#32

decided that we do not need such method in core