2

I am using Capybara and Selenium to automate Google Play Store App Creation.

I am trying to upload app screenshot images in Store Listing screen. There is a image droppable box for image upload and there is on-drop event handler for that I guess as below screenshot, but I can not simulate dropping image with following code form Using Selenium to imitate dragging a file onto an upload element.

>> e2 = $.Event('drop'); e2.originalEvent = {dataTransfer: {files: fileList}}; $('#gwt-uid-699').parent().trigger(e2);
Object { length: 0, prevObject: Object, context: HTMLDocument → publish, selector: "#gwt-uid-699.parent()" }

enter image description here

Community
  • 1
  • 1
Chk0nDanger
  • 1,211
  • 1
  • 10
  • 26

0 Answers0