Selenium RC > how to upload file using attachFile()

后端 未结 8 764
谎友^
谎友^ 2021-02-04 14:02

I am using Selenium RC with Junit framework. I am trying to upload a file using attachFile() method.

attachFile: (Information collected from selenium API http:/         


        
相关标签:
8条回答
  • 2021-02-04 14:41

    Its much easier using $sel->type and $sel->focus. Below is a good article.

    http://bitsilearn.blogspot.com/

    0 讨论(0)
  • 2021-02-04 14:42

    My solution to this is to use Selenium-2 in RC emulation mode. This allows you to keep your legacy Selenium-1 tests but switch to Selenium-2 api when needed to perform tasks like file uploads.

    Selenium-2 is currently in Beta but seems to be relatively stable. But not everything that Selenium-1 can do is supported by Selenium-2 RC emulation mode so think twice before you go that way.

    More on this here: http://seleniumhq.org/docs/09_webdriver.html#emulating-selenium-rc

    0 讨论(0)
提交回复
热议问题