Guest User

Untitled

a guest
Dec 14th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package com.facebook.test;
  2.  
  3. import org.openqa.selenium.By;
  4.  
  5. import com.github.wasiqb.coteafs.appium.android.AndroidActivity;
  6. import com.github.wasiqb.coteafs.appium.android.AndroidDevice;
  7. import com.github.wasiqb.coteafs.appium.device.DeviceElement;
  8.  
  9. public class SwipeOnElement extends AndroidActivity{
  10.  
  11. public SwipeOnElement (final AndroidDevice device) {
  12. super (device);
  13.  
  14. }
  15.  
  16. @Override
  17. protected DeviceElement prepare () {
  18. final DeviceElement mPage = DeviceElement.create ("HomePage")
  19. .using (By.id ("com.facebook.katana:id/tab_view_container"));
  20.  
  21. DeviceElement.create ("SwipeIt")
  22. .using(By.id ("com.facebook.katana:id/story_tray_header"))
  23. .parent(mPage);
  24.  
  25. return mPage;
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32. }
Add Comment
Please, Sign In to add comment