Simply use this method. Provide your package name as an argument and it will give you “true” if the application is already installed else “false”. (only applicable on pCloudy) private boolean isMyAppInstalled(AppiumDriver<WebElement> driver, String packageName) Read More
Categories : Appium
Posted by Ahmad Sayeed
No Comments
Code Snippet: 1. Using Refresh command- driver.navigate().refresh(); 2. Using get command- driver.get(""https://www.google.com.bd/""); //Or the page URL. 3. Using the current url- driver.navigate().to(driver.getCurrentUrl()); Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
Code Snippet: driver.manage().deleteAllCookies(); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
Code Snippet: Scanner pCloudyScanner = new Scanner(System.in); System.out.println("Please Enter the searching content"); String search = pCloudyScanner.nextLine(); driver.findElement(By.name("q")).sendKeys(search); Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
Code Snippet: //Implicit Wait in Appium driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS); //Explicit Wait in Appium Thread.sleep(5); Read More
Categories : Appium
Posted by Shah Nawaz
No Comments
Code Snippet: driver.removeApp("bundle_id"); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
Code Snippet: driver.removeApp("App_package"); Read More
Categories : Appium
Posted by Sridatta Pani
No Comments
Verifies whether the application with given bundle identifier is installed on the device. Returns true or false. bundleId: The bundle identifier of the application, which is going to be verified. Mandatory argument. Simply use this Read More
Categories : Appium
Posted by Ahmad Sayeed
No Comments
Code Snippet: TouchAction fingerOne = new TouchAction(driver); TouchAction fingerTwo = new TouchAction(driver); MultiTouchAction action = new MultiTouchAction(driver); fingerOne.press(20, 20); fingerOne.moveTo(10, 100); fingerOne.release(); fingerTwo.press(30, 30); fingerTwo.moveTo(20, 200); fingerTwo.release(); action.add(fingerOne); action.add(fingerTwo); action.perform(); Read More
Categories : Appium
Posted by Shibu Panda
No Comments
Code Snippet: //Java-Client version: Latest(7.0.0) //Appium version: 1.9.1 AndroidTouchAction firstFinger= new AndroidTouchAction(driver); firstFinger.press(PointOption.point(xOffset, yOffset-200)).moveTo(PointOption.point(xOffset, yOffset-20)); AndroidTouchAction secondFnger= new AndroidTouchAction(driver); secondFnger.press(PointOption.point(xOffset, yOffset+200)).moveTo(PointOption.point(xOffset, yOffset+20)); MultiTouchAction action2= new MultiTouchAction(driver); action2.add(firstFinger).add(secondFnger).perform(); Thread.sleep(10000); Read More
Categories : Appium
Posted by Shibu Panda
No Comments