Download Drag-Sort Demos app from Google Play Store to perform drag and drop operation in android device and install device or Genymotion emulator.
Please visit below URL to download apk file from Google play Store
https://hiromia.blogspot.com/2017/02/how-to-download-android-apk-file-from.html
Before drag and drop
After drag and drop
Please visit below URL to download apk file from Google play Store
https://hiromia.blogspot.com/2017/02/how-to-download-android-apk-file-from.html
Before drag and drop
After drag and drop
import io.appium.java_client.MobileDriver;
import io.appium.java_client.TouchAction;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;
public class DrapandDrop {
private static AndroidDriver driver;
public static void main(String []arg) throws MalformedURLException, InterruptedException {
// Created object of DesiredCapabilities class.
DesiredCapabilities capabilities = new DesiredCapabilities();
// Set android deviceName desired capability. Set genymotion emulator name.
capabilities.setCapability("deviceName", "192.168.56.101:5555");
// Set android platformName desired capability. It's Android in our case here.
capabilities.setCapability("platformName", "Android");
// Set android VERSION desired capability. Set genymotion emulator OS version.
capabilities.setCapability(CapabilityType.VERSION, "6.0.0");
// Set BROWSER_NAME desired capability. It's Android in our case here.
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
// Java package of the tested Android app
capabilities.setCapability("appPackage", "com.mobeta.android.demodslv");
// An activity name for the Android activity you want to run from your package.
capabilities.setCapability("appActivity", "com.mobeta.android.demodslv.Launcher");
driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
//Tap on first element.
driver.findElementById("com.mobeta.android.demodslv:id/activity_title").click();
//Locate 4th element from list to drag.
WebElement webElement1=(WebElement) driver.findElementsById("com.mobeta.android.demodslv:id/drag_handle").get(3);
//Locate 6th element to drop dragged element.
WebElement webElement2=(WebElement) driver.findElementsById("com.mobeta.android.demodslv:id/drag_handle").get(6);
//Perform drag and drop operation using TouchAction class.
//Created object of TouchAction class.
TouchAction action=new TouchAction((MobileDriver) driver);
//It will hold tap on 4th element and move to 7th position and then release tap.
action.longPress(webElement1).moveTo(webElement2).release().perform();
Thread.sleep(2000);
driver.quit();
}
}
Really i like this blog and i got lot of information's from your blog.And thanks for sharing!!!!
ReplyDeleteIperidigi
SEO Company in Chennai
SEO Company in India
Hi, your article really nice. That is so logical and clearly explained. Keep it up! I will follow up your blog for the future post.
ReplyDeleteIt was a wonderful chance to visit this kind of site and I am happy to know. thank you so much.
Isoft Innovations Company Address
Isoft Innovations Adyar
Isoft Innovations Chennai
Isoft Innovations
I’ve been browsing on-line greater than three hours today, but I never discovered any attention-grabbing article like yours. It is beautiful worth sufficient for me. Personally, if all webmasters and bloggers made good content material as you did, the net will be a lot more helpful than ever before.
ReplyDeleteLogistic ERP
Fleet Management Software
Warehouse Management Software
Human resources management software
This is very nice post...Thanks for sharing
ReplyDeleteSoftware Testing course in chennai
Amazing post. It will be very helpful for beginners like me. Thank you very much for this kind of post.Waiting for your next blog.
ReplyDeleteSelenium Training in Chennai
selenium testing training in chennai
iOS Training in Chennai
Digital Marketing Course in adyar
Digital Marketing Course in tambaram
Outstanding blog thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us.
ReplyDeleteAirport Ground Staff Training Courses in Chennai | Airport Ground Staff Training in Chennai | Ground Staff Training in Chennai
I am really enjoying reading your well written articles.
ReplyDeleteIt looks like you spend a lot of effort and time on your blog.
I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..
Best Spoken English Classes in Bangalore
Best English Coaching Center in Chennai
Spoken English in Bangalore
Spoken English Institutes in Bangalore
English Speaking Classes in Bangalore
Very intelligent post, thanks for sharing this with us it is a worth read. Excellent post!!! Kindly keep updating.
ReplyDeleteSEO Training in Vadapalani
SEO Course in Chennai
SEO Training in Chennai Velachery
SEO Training in Kelambakkam
SEO Course in Karappakkam
SEO Course in Kandanchavadi
Thanks for sharing,this blog makes me to learn new thinks.
ReplyDeleteinteresting to read and understand.keep updating it.
AWS Courses in T nagar
AWS Course in Anna Nagar
AWS Course in Bangalore
Thanks for your sharing such a useful information. This was really helpful to me.
ReplyDeleteData Science Institute in Bangalore
Data Science Training Institutes in Bangalore
Data Science Course in Perambur
Data Science Training in Nolambur
Data Science Training in Nungambakkam
Data Science Course in Tnagar
It is really an informative blog. Keep sharing useful information like this.
ReplyDeleteExcel Training in Chennai
Excel classes in Chennai
Advanced Excel Training
MS excel Training in Chennai
Excel vba Training in Chennai
Excel Training in Adyar
Your information's are very much helpful for me to clarify my doubts.
ReplyDeletekeep update more information's in future.
android training center in bangalore
Android Course in Anna Nagar
Android Training in T nagar
Android Training in Sholinganallur
I appreciate you sharing this post. Thanks for your efforts in sharing this information in detail. kindly keep continuing the good job.
ReplyDeleteAutomation Courses in Bangalore
RPA Courses in Bangalore
RPA Training in Bangalore
Robotics Courses in Bangalore
Robotics Classes in Bangalore
Robotics Training in Bangalore
Wonderful post. Thanks for taking time to share this information with us.
ReplyDeleteRPA Training in Chennai
RPA Training near me
Robotics Process Automation Training in Chennai
Angularjs Training in Chennai
AWS Training in Chennai
DevOps Training in Chennai
This information is impressive. I am inspired with your post writing style & how continuously you describe this topic. Eagerly waiting for your new blog keep doing more.
ReplyDeleteAndroid Training in Bangalore
Android Course in Bangalore
Angularjs Training Institute in Bangalore
Angularjs Classes in Bangalore
Angularjs Coaching in Bangalore
Awesome Post. The content show cases your in-depth knowledge. Thanks for Sharing.
ReplyDeletePrimavera Training
Primavera p6 Training
Primavera Training in Velachery
Primavera Courses in Velachery
Primavera Training in Tambaram
Primavera Courses in Adyar
Primavera Training in Adyar
I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
ReplyDeleteSelenium Training in Chennai
software testing training institute chennai
Selenium testing training
Selenium Courses in Chennai
Best Software Testing Training Institute in Chennai
Testing training
ReplyDeleteAwesome Post. It shows your in-depth knowledge on the content. Thanks for Sharing.
Informatica Training in Chennai
Informatica Training center Chennai
Informatica Training Institute in Chennai
Best Informatica Training in Chennai
Informatica Course in Chennai
IELTS coaching in Chennai
IELTS Training in Chennai
IELTS coaching centre in Chennai
Thank you sharing this kind of noteworthy information. Nice Post.
ReplyDeletesustainable-hyderabad
Guest posting sites
Very nice thanks for posting
ReplyDeletehttps://www.slajobs.com/advanced-excel-vba-training-in-chennai/
This is the best post and I got more information about this topic. I am waiting for your next post...!
ReplyDeletePega Training in Chennai
Pega Course in Chennai
Excel Training in Chennai
Corporate Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Tableau Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
Thanks for sharing such a great blog Keep posting..
ReplyDeleteWeb Designing Course in Gurgaon
Web Designing Course in Gurgaon
I learn some new stuff from it too, thanks for sharing your information. XE88
ReplyDeletevery nice...
ReplyDeleteinplant training in chennai
inplant training in chennai for it
Bermuda web hosting
Botswana hosting
armenia web hosting
dominican republic web hosting
iran hosting
palestinian territory web hosting
iceland web hosting
good
ReplyDeleteBermuda web hosting
Botswana hosting
armenia web hosting
lithuania shared web hosting
inplant training in chennai
inplant training in chennai for it
suden web hosting
tunisia hosting
uruguay web hosting
This blog is very helpful for us...I got some important information from this blog..
ReplyDeleteDOT NET Training in Chennai
DOT NET Training in Bangalore
DOT NET Training Institutes in Bangalore
DOT NET Course in Bangalore
Best DOT NET Training Institutes in Bangalore
DOT NET Institute in Bangalore
DOT NET Training Institute in Marathahalli
PHP Training in Bangalore
Spoken English Classes in Bangalore
Data Science Courses in Bangalore
"great
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
the software work is really great oracle training in chennai
ReplyDeleteVery Useful article
ReplyDeletedata science certification malaysia
This is a great post I saw thanks to sharing. I really want to hope that you will continue to share great posts in the future.
ReplyDeleteHRDF training
I am stunned by the information that you have on this blog. It shows how well you fathom this subject.
ReplyDeletetraining provider in malaysia
i am glad to discover this page : i have to thank you for the time i spent on this especially great reading !! i really liked each part and also bookmarked you for new information on your site.
ReplyDeleteQA Companies
Automation Testing Companies
Mobile App Testing Companies
Performance Testing Companies
Security Testing Companies
You completely match our expectation and the variety of our information.
ReplyDeletecyber security training malaysia
l847x9mxrnh072 realistic dildo,cheap sex toys,horse dildo,wholesale sex toys,realistic vibrators,dildos,Rabbit Vibrators,dog dildo,vibrators s411a3xwxxp764
ReplyDelete