Created
December 12, 2017 13:07
-
-
Save mfaisalkhatri/dcbd12e8f42c9e28520976932c260b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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