![]() When we try to upload using sendKeys() with file path from the device itself, webdriver will throw below exception: : An unknown server-side error occurred while processing the command. We will discuss below on this with example. The only thing that Appium can assist with is to upload files to device, so your device can be cleaned and populated only during the test automation using pushFile method. We literally have to do everything via UI - as we manually do like click upload button, open image selection, select image and etc. Unfortunately, there is no way like Selenium SendKeys() or javascript options to work for file upload in mobile application using Appium. Now, I have seen people asking for 'How to upload/attach file using Appium'. There are multiple ways to upload a file which we have seen using Selenium like using sendkeys() or using JavaScript() or Robot Class. We often come across scenarios where we have to upload a file/image while testing an application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |