File upload in Se Builder

86 views
Skip to first unread message

SeleniumBuilder

unread,
Aug 23, 2016, 3:39:29 PM8/23/16
to Se Builder
Hi,

I am fairly new to Selenium Builder. I was using Selenium webdriver before this.

I was able to quickly upload files in Selenium IDE and webdriver. But when I used 'setElementText', instead of 'type' in Selenium IDE, file upload didn't happen.
The test opened the Windows dialog box but did not enter the text.

Should I do this differently?


Thanks.

Andrew Halliday

unread,
Aug 26, 2016, 9:21:34 AM8/26/16
to Se Builder
Hi - I am having similar problems - @DavidStark are you able to help?

Running locally on the old version I can enter text directly as though it was an input box and no dialog opens - all is well:

    {
      "type": "sendKeysToElement",
      "locator": {
        "type": "xpath",
        "value": "//input[@id='signature']"
      },
      "text": "${var_file_folder}\\sig1.jpg"
    },

However, running on the server, the file upload dialog opens and won't close until it fails.

Very frustrating - any thoughts David??

Cheers
Andrew

David Stark

unread,
Aug 31, 2016, 9:40:17 AM8/31/16
to se-bu...@googlegroups.com

Well, I can confirm that I can reproduce the problem. The file upload dialog opens and never closes again.

Does anyone have some webdriver code that does the right thing in terms of file uploads?

- David

--
You received this message because you are subscribed to the Google Groups "Se Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to se-builder+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Halliday

unread,
Oct 18, 2016, 8:29:48 AM10/18/16
to Se Builder
Hey David
Any further thoughts on this issue? Just wondering if I should get rid of the test as it is ruining my sea of green :)

Ramesh P

unread,
Dec 13, 2016, 10:50:17 PM12/13/16
to Se Builder
Hi David,

Webdriver also not support the File upload option. Selenium unable to interact with System related windows
 You need to use third party tools like Sikuli / AutoIT to upload files

Regards,
Ramesh

David Stark

unread,
Feb 28, 2017, 4:13:51 AM2/28/17
to se-bu...@googlegroups.com

Oh right. In which case this may be out of Builder's control. I definitely don't want to embrace-and-extend Webdriver!

- David

Reply all
Reply to author
Forward
0 new messages