Hey,
has anyone used the @FindBy? i have a really weird corner case in my platform. its been designed around the pageFactory and @FindBy, but sometimes i need to cast and IOS element to a Web element, pageFactory has issues doing it with certain ways its been setup…like mine. My fix which is kinda hacky is something like this…
@FindBy(xpath = '//UIAApplication[1]/UIAWindow[3]/UIAPicker[1]')
public WebElement pickerWheelDOB
IOSDriver driverM = (IOSDriver)this.driver
((IOSElement)driverM.findElementByXPath('//UIAApplication[1]/UIAWindow[3]/UIAPicker[1])).setValue('value')
i would like a way to pass the findBy element into the driver.findelement so something like this
((IOSElement)driverM.findElement(pickerWheelDOB)).setValue('value')
is this possible? i keep getting errors when i try something like this.