I need to upload file. Steps are: 1. Clicking on on button which cal modal Window. (Linux window has no location bar) 2. To choose right file and upload it.
Very appreciate any help. Using Chrome Firefox drivers and Java.
I need to upload file. Steps are: 1. Clicking on on button which cal modal Window. (Linux window has no location bar) 2. To choose right file and upload it.
Very appreciate any help. Using Chrome Firefox drivers and Java.
I find workaround with Robot class
here is code:
For modal windows, I prefer using autoit with selenium, autoit is a very light weight application and can create the script and compile to make an exe file and run the exe file in your selenium,
Formore information see here.
This has been asked several times and is also in some Selenium FAQ.
The idea is to directly send the path to the file to an element which you would usually click at to get the modal window - that is
<input type='file' />
element.