Support other locator types in ElementFactory
mialeska opened this issue · comments
Alaksiej Mialeška commented
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
DmitryBogatko commented
decided that we do not need such method in core