How to upload a image in mobile device using Appium / Selendroid

1,334 views
Skip to first unread message

Sreenivasan M

unread,
May 16, 2014, 7:03:58 AM5/16/14
to appium-...@googlegroups.com
I tried with following commands;but app got crashed.Please give ur views and suggestions

WebElement upload = driver.findElement(By.xpath("//TextView[@id='textView_upload_profile_picture']"));
upload.sendKeys("SD Card\\DCIM\\100ANDRO\\DSC_1204.jpg");

Above command is crashing the app.When I run the test Appium/Selendroid hits the upload button and it opens the Mobile Gallery and crashes the app.Functionality  - I want to upload my profile picture in my testing app.

Sreenivasan M

unread,
May 19, 2014, 2:00:56 AM5/19/14
to appium-...@googlegroups.com
Guys Please help me in this.My app is based on pictures.Where I can upload using Gallery or take a picture from Camera.I'm completely stuck. Please post how to handle this


Reply all
Reply to author
Forward
0 new messages