Skip to content

Instantly share code, notes, and snippets.

@mfaisalkhatri
Created December 12, 2017 13:07
Show Gist options
  • Save mfaisalkhatri/dcbd12e8f42c9e28520976932c260b02 to your computer and use it in GitHub Desktop.
Save mfaisalkhatri/dcbd12e8f42c9e28520976932c260b02 to your computer and use it in GitHub Desktop.
package com.facebook.test;
import org.openqa.selenium.By;
import com.github.wasiqb.coteafs.appium.android.AndroidActivity;
import com.github.wasiqb.coteafs.appium.android.AndroidDevice;
import com.github.wasiqb.coteafs.appium.device.DeviceElement;
public class SwipeOnElement extends AndroidActivity{
public SwipeOnElement (final AndroidDevice device) {
super (device);
}
@Override
protected DeviceElement prepare () {
final DeviceElement mPage = DeviceElement.create ("HomePage")
.using (By.id ("com.facebook.katana:id/tab_view_container"));
DeviceElement.create ("SwipeIt")
.using(By.id ("com.facebook.katana:id/story_tray_header"))
.parent(mPage);
return mPage;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment