Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
202 views
by Contributing Tester (92 points)
edited by
I am running a selenium server (IDE) and getting below issue.

Script is pre-created, sensing some very geenric basic issue. Please help.

    [junit] java.lang.RuntimeException: Could not start Selenium session: Tried all: '1' addresses, but could not connect over HTTP to server: 'localhost', port: '4444'
    [junit]     at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
    [junit]     at oracle.oim.dataseed.BaseEntity.initializeSeleniumAndStartVideoRecording(BaseEntity.java:66)
    [junit]     at oracle.oim.dataseed.AppInstanceEntity.<init>(AppInstanceEntity.java:39)
    [junit]     at oracle.oim.test.DataSeedingTest.seedData(DataSeedingTest.java:169)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

1 Answer

0 like 0 dislike
by

It looks like your port 4444 is already occupied.

You can verify that on your Linux box using below command.

netstat -anp | grep 4444

It will show you whats occupying your port 4444. Then, you can close that process or you can start selenium server with different port.

by Contributing Tester (92 points)
Tried netstat, port seems free.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...