Open dipakkumar1225 opened 11 months ago
AFAIK EventFiringWebDriver is deprecated. Consider using EventFiringDecorator instead or the createProxy API
AFAIK EventFiringWebDriver is deprecated. Consider using EventFiringDecorator instead or the createProxy API
@mykola-mokhnach When will this fix be released?
Description
I've encountered an unexpected behavior when using @AndroidFindBy annotation in conjunction with PageFactory.initElements(new AppiumFieldDecorator(eventDriver, Duration.ofSeconds(30)), this);.
Environment
Details
When using the annotation @AndroidFindBy(accessibility = "open menu") for an element, I'm encountering an error stating:
Unsupported CSS selector '*[name='webElementOpenMenu']'. Reason: ''name' is not a valid attribute. Supported attributes are 'checkable, checked, clickable, enabled, focusable, focused, long-clickable, scrollable, selected, index, instance, description, resource-id, text, class-name, package-name''
However, using the direct method appiumDriver.findElementByAccessibilityId("open menu").click(); works without any issues.
It appears that the accessibility attribute from the annotation is being incorrectly translated into a CSS selector with the name attribute when using AppiumFieldDecorator with EventFiringWebDriver.
Code To Reproduce Issue [ Good To Have ]
Exception Stacktraces
Appium Error Log: https://gist.github.com/dipakkumar1225/619b603dbd8f9383b442b76eab343bc5
Appium Working Log: https://gist.github.com/dipakkumar1225/d7ecf952f56ddf8a93543ae87f5667d4#file-working-txt