1

I used Selenium IDE firefox plugin to record a test case then i used '.bat' command line to automate testing using the below command,

java -jar C:\Selenium\selenium-server-standalone-2.48.2.jar -htmlSuite "*firefox" "http://16.52.110.123:8080/AntExample/userRegistration.htm" "C:\Selenium\First_Test_Real_Suite.html" "C:\selenium\logs\Result.html"

the test was perfectly working using the .bat script when suddenly today I am facing this error message in firefox when I run the script

Firefox can't find the file at chrome://src/content/TestRunner.html?auto=true&multiWindow=true&defaultLogLevel=info&baseUrl=http://16.52.110.123:8080/AntExample/userRegistration.htm&resultsUrl=http://localhost:4444/selenium-server/postResults&test=http://localhost:4444/selenium-server/tests/First_Test_Real_Suite.html.

I am all ears to fix this issue

4
  • I observed that issue is in this sector in path: Commented Dec 23, 2015 at 22:40
  • chrome://src/content/TestRunner.html while it should be chrome://selenium-ide/content/selenium-core/TestRunner.html How to automatically set it to run the correct path ? Commented Dec 23, 2015 at 22:41
  • Looks like this is broken again on Firefox 48. I think the eventual solution will likely be to upgrade to selenium-standalone-3.0.0-beta3.jar. Sources: github.com/SeleniumHQ/selenium/issues/2616 stackoverflow.com/questions/39127682/… Standalone runner 2.53.0 was working with FF 47 earlier today, before FF automatically upgraded. Commented Aug 26, 2016 at 19:07
  • Also relevant: support.mozilla.org/en-US/kb/… Commented Aug 26, 2016 at 19:24

3 Answers 3

3

You are getting this issue due to latest Firefox browser update :)

First Download and Install Previous Firefox Browser Version 42.0 (Link : Click here)

and Try to execute same Selenium Test cases using Bat file. It will work properly. :)

Also after Installing Firefox browser, Don't forgot to set following option

Goto Tools >> Options >> Advanced Tab >> Update Tab >> select "Never check for updates (not recommended: security risk)" option to disable auto update.

Running Selenium Test cases using bat file will work properly once new "Selenium Standalone Server" version get released (Current version is 2.48.2 will work for Firefox 42.0)

Sign up to request clarification or add additional context in comments.

Comments

0

upgrade/downgrade to FF 42.0 fixed the error. Thnx guys

1 Comment

May be this should be a comment?
0

This is indeed because Firefox 43 doesn't allow you to run unsigned add-ons. If you insist on using the old Selenium RC Runner and want to run the latest Firefox, you can enable add-ons again by allowing for unsigned add-ons:

  • In Firefox go to about:config
  • Look for setting xpinstall.signatures.required and toggle it to false

Now any unsigned add-on will run, including the Selenium RC Runner. Use it at your own risk ;-)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.