Selenium IDE - local (non-webhosted) file access for testing? -


my problem

when selenium ide used run test, "base url" accessed via http on web server.

i need know if (and how) possible selenium ide run test on locally stored file. when opening file in firefox, path looks in address bar: file:///c:/documents , settings/username/my documents/somehtml.html

however, selenium gives nasty error when put path in selenium ide's base url field test (see bottom of post).

what tried

i run windows xp , have tried switching file path slashes backslashes while keeping protocol (file:///) slashes is. tried replacing spaces %20 too.

i considered whether firefox proxy settings might causing issue, isn't because if open file in firefox without issue.

the solution i'm working on avoid selenium webdriver @ phase. know better on technical there practical reasons why can't use @ point. selenium ide must used now.

error

error thrown when attempting open local file:

[error] unexpected exception: name -> ns_error_failure, queryinterface -> function queryinterface() { [native code] }, message -> component returned failure code: 0x80004005 (ns_error_failure) [nsidomlocation.href], result -> 2147500037, filename -> chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js, linenumber -> 686, columnnumber -> 0, location -> js frame :: chrome://selenium-ide/content/selenium-core/scripts/selenium-browserbot.js :: browserbot.prototype.setopenlocation :: line 686, inner -> null, data -> null, initialize -> function initialize() { [native code] }

one solution use open command first line in test, , set local path target. fine handful of tests, may not sufficient larger test suites.

command: open target: file///c:/path/to/your/file.html 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -