0

I am trying to test an Extjs 4 application that has a file upload. The test is written in selenium. The component is a Ext.ux.form.FileUploadField. And it works fine when the user clicks the browse button and selects the file. However when this is done by selenium using sendkeys, or even when you paste the value in the field, then the upload no longer works. I noticed that on server side the content length is no longer properly received. Any fixes, workarounds for this problems?

user3249353
  • 239
  • 1
  • 6
  • 16
  • why don't you use the selenium click function? – Edwin Jul 06 '17 at 15:19
  • Can you be a bit more specific? Click on what? If i click the browse button it opens the os file browser. what next? – user3249353 Jul 07 '17 at 07:50
  • oh now I understand your problem, but check this answer (especially the robot thingy) https://stackoverflow.com/questions/11256732/how-to-handle-windows-file-upload-using-selenium-webdriver – Edwin Jul 07 '17 at 08:08

0 Answers0