Posts

What are the best practices for appium framework using page opject model

Image
1 I am developing an automation framework for a mobile application using Appium (in java). I started with creating a class per view, in each class, I find and initialize elements of that class. Now after a while I understand my configuration for the framework is not correct and I'm not able to expand it. It would be great if anyone can introduce me an implemented framework on Github. here is my config class, I use setdriver() to set a driver wherever I need. public class Config { public AndroidDriver<AndroidElement> driver; public static AndroidDriver<AndroidElement> SetDriver() throws MalformedURLException File appPath= new File("src"); File app = new File(appPath,"My-debug.apk"); DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(MobileCapabilityType.DEVICE_NAME, "myDevice"); cap.setCapability(MobileCapabilityType.APP,app.getAbsolutePath()); cap.setCapability("autoGrantPermissions",true); ...