• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upload file using Selenium-RC

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to be able to add file input to an HTML dialog in my Selenium tests.
I know that there is a javascript security issue that basically prevent it. However:
1. I am familiar with the solution that described here
http://gusiev.com/2009/04/upload-files-with-selenium-ide/
Unfortunately, this solution doesn't fit to my requirements because if the GUI is not active the awt.Robot cannot focus on the relevant window. And since I run the tests on a remote server this solution is not relevant.
2. The Selenium official documentation contains the following text:
http://seleniumhq.org/docs/05_selenium_rc.html#how-selenium-rc-works
...the browsers are launched in a special mode called Heightened Privileges, which allows websites to do things that are not commonly permitted (as doing XSS, or filling file upload inputs and pretty useful stuff for Selenium)...
this mode might solve my problem. How can I make Selenium-RC run in this mode?

3. If there are another solution to this problem I'll be glad to know about it

Thanks ahead
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic