java.lang.IllegalArgumentException: @$Proxy11: one of [uiAutomator, accessibility, className, id, tagName, name, xpath, linkText, partialLinkText] should be filled

I am sing Appium4.1.2 .

error

java.lang.IllegalArgumentException: @$Proxy11: one of [uiAutomator, accessibility, className, id, tagName, name, xpath, linkText, partialLinkText] should be filled
at io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder.getFilledValue(AppiumByBuilder.java:105)
at io.appium.java_client.pagefactory.bys.builder.AppiumByBuilder.createBy(AppiumByBuilder.java:145)
at io.appium.java_client.pagefactory.DefaultElementByBuilder.buildMobileNativeBy(DefaultElementByBuilder.java:137)
at io.appium.java_client.pagefactory.DefaultElementByBuilder.buildBy(DefaultElementByBuilder.java:186)
at io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:57)
at io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:44)
at io.appium.java_client.pagefactory.AppiumElementLocatorFactory.createLocator(AppiumElementLocatorFactory.java:1)
at org.openqa.selenium.support.pagefactory.DefaultFieldDecorator.decorate(DefaultFieldDecorator.java:56)
at io.appium.java_client.pagefactory.AppiumFieldDecorator.decorate(AppiumFieldDecorator.java:172)
at org.openqa.selenium.support.PageFactory.proxyFields(PageFactory.java:112)
at org.openqa.selenium.support.PageFactory.initElements(PageFactory.java:104)

1 Like

Hi Tanushree_Bal, I have the same situation, using appium 1.6.5, I’m trying to run tests on iOS real devices. Did you find some solution?

I also faced this issue and I am using page factory model, so we realized that when it initialized all objects so it will search for all elements. So we corrected all Xpath that means no elements should be blank on that java class.And it worked for me.

2 Likes

Thank you mate! It works for me.

No issues. Happy Testing!!!

Thanks!! It works for me

1 Like

Thanks! It’s work for me.

1 Like