HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Appium Tutorial for Beginners-07 How to Scroll into Mobile Element

6,235 views October 29, 2019 15:38

Watch on YouTube
ChannelBakkappa N - TheTechie AutomationLaboratory

Description from the creator

Appium Mobile Automation Tutorial for Beginner PART07 - How to Scroll into Mobile Element,#AppiumTutorials #MobileTesting #AppiumSelenium

Previous Tutorials :-
PART06- youtu.be/XLt1NTq8-dQ

Important Notes:-
@Test
public void Test1() {
try {
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("deviceName", "My Device");
caps.setCapability("udid", "emulator-5554"); // DeviceId from "adb devices" command
caps.setCapability("platformName", "Android");
caps.setCapability("platformVersion", "8.0.0");
caps.setCapability("appPackage", "com.example.android.apis");
caps.setCapability("appActivity", "com.example.android.apis.ApiDemos");
AndroidDriver-MobileElement- driver = new AndroidDriver-MobileElement-(new URL("127.0.0.1:4723/wd/hub";), caps);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

driver.findElementByXPath("//*[contains(@text,'Views')]").click();

driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"WebView\").instance(0))").click();
Thread.sleep(5000);

driver.quit();

} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}

About this tutorial

Bakkappa N - TheTechie AutomationLaboratory published this 15:38 video tutorial on October 29, 2019. It has been watched 6,235 times on YouTube.

Duration
15:38
Published
October 29, 2019
Views
6,235
Likes
54

Tags

Share

This tutorial in other languages