Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
want to upload file using Browse button.
Bibhu Behera
3/13/2009 10:21:00 AM
Below is the code:
$ie.file_field(:id,'_20_file').click_no_wait
$ie.file(:id,'_20_file').click
$ie.button(:id,'_20_file').click
Not working above all script. Please any pointer ?
--
Posted via
http://www.ruby-...
.
1 Answer
Bassel Samman
3/13/2009 1:11:00 PM
0
I assume you're talking about watir. I don't think you need to click,
but maybe focus. you can don't need to click. You can do
$ie.file_field(:id,'_20_file').set('C:\<Path_to_file>')
thanks,
Bassel
http://www.imu...
Bibhu Behera wrote:
> Below is the code:
>
> $ie.file_field(:id,'_20_file').click_no_wait
>
> $ie.file(:id,'_20_file').click
>
> $ie.button(:id,'_20_file').click
>
>
> Not working above all script. Please any pointer ?
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
want to upload file using Browse button.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password