selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Calling from CMD won't do anything

Open Jalax6 opened this issue 10 years ago • 6 comments

OS: Windows 7 Selenium Version: 2.53.1 Browser: Firefox Browser Version: 47.0.1 (64-bit)

Just set-up my cmd to run a Selenium IDE script with Selenium Standalone, then open the firefox and run the test.

When running, firefox opens 2 windows, the TestSuite is loaded, the commands are show in the middle box, but then nothing happens. Nothing.

Steps to reproduce -

I'm using this command: java -jar C:\SeleniumTest\selenium-server-standalone-2.53.1.jar -firefoxProfileTemplate "C:\profila" -htmlSuite "*firefox" "http://127.0.0.1" "C:\SeleniumTest\SeleniumTestcase.html" "C:\SeleniumTest\seleniumtestresult.html" -port 5555

Jalax6 avatar Jul 15 '16 13:07 Jalax6

can you also provide the example "SeleniumTestcase.html" you are using?

lukeis avatar Jul 15 '16 15:07 lukeis

Sure.

Somehow, I wasn't able to upload the zip file with the files in. There it goes a dropbox link:

https://www.dropbox.com/s/qs38vtv9gdklisi/SeleniumTestcase.zip?dl=0 Testcase + Suitcase

Jalax6 avatar Jul 15 '16 17:07 Jalax6

zip is not very nice to send people... may contain evil :) can you create a gist instead:

https://gist.github.com

lukeis avatar Jul 15 '16 18:07 lukeis

Oh, my apologies.

There it goes: https://gist.github.com/Jalax6/cb8c8c0f3e3b3098e45c7c6111ce0219

Oh, and notice that are 2 files in there.

Jalax6 avatar Jul 15 '16 19:07 Jalax6

we're reworked the htmlrunner into a new standalone jar to use:

http://selenium-release.storage.googleapis.com/3.0/selenium-html-runner-3.0.1.jar

try using that. For me it successfully launches IDE test suites. Post back if you have issues and we can reopen this.

lukeis avatar Oct 23 '16 03:10 lukeis

Hello Jalax6,
 
I also faced the same issue. While launching Firefox, 2 windows (one blank and one with Skype) would open up and my tests would fail. To solve this problem, I created a new profile and launched Firefox with that profile. I created profile as explained in detail on the mozilla support site here. I also made sure to select "Never check for updates (not recommended: security risk)" under Options --> Advanced --> Update
 
This is how you launch Firefox with specific profile:
 
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("CreatedProfile");
WebDriver driver = new FirefoxDriver("String profileName");
 
Hope this helps you.

jigyasa-at-git avatar Oct 23 '16 08:10 jigyasa-at-git