Selenium RC > how to upload file using attachFile()

后端 未结 8 785
谎友^
谎友^ 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: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

提交回复
热议问题