have an element which is not working in mac os the seme element which is working in Windows OS, with the same versions of appium, selenium
below is my code
{
OnBoardingElements(AppiumDriver driver)
{
PageFactory.initElements(new AppiumFieldDecorator(driver), this);
}
@AndroidFindBy(id = “com.karwatechnologies.karwataxi:id/intro_btn_skip”)
public MobileElement skip;
@FindBy(id = “com.karwatechnologies.karwataxi:id/intro_btn_skip”)
public MobileElement sskip;
@AndroidFindBy(className = “android.widget.Button”)
public MobileElement clsskip;
}
I tried with all the elements, none of the elements is working, all throw the same error
ENVIRONMENT:
appium version: 1.9.1
Mac os : 10.14
Real android device : ver: 7.0 (motto XT)
selenium : 3.11
java-cleint : 6.0.0 BETA1
ERROR LOGS of IDE:
org.openqa.selenium.NoSuchElementException: Can’t locate an element by this strategy: By.chained({By.className: android.widget.Button})
at io.appium.java_client.pagefactory.AppiumElementLocator.findElement(AppiumElementLocator.java:126)
at io.appium.java_client.pagefactory.interceptors.InterceptorOfASingleElement.intercept(InterceptorOfASingleElement.java:61)
at io.appium.java_client.android.AndroidElement$$EnhancerByCGLIB$$b598166c.click()
at KarwaApp.TaxiBookingAndroid.OnBoardingTestCases.onBoarding(OnBoardingTestCases.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)