I have developed a web page which takes all inputs for test cases such as: locators, input data, urls to open, etc. I run the page in tomcat server. Whenever I'm executing the test case with that web page, the browser is opening in my local system and goes fine.

I want to share this url so when others use this link to execute the selenium code, the browser should be open in their system.

Is it possible to do this? If so, please let me know.

  • Where is the tomcat server? On your local machine? – Bigwave Jun 23 '15 at 8:08
  • Yes right now , it is in my local . Later will move it to production server – QAMember Jun 23 '15 at 9:28

Where ever the selenium library is running is where the browser will run.

If you are planning on putting this on a server, you'll have trouble if there is nobody logged in to the console.

You should look at Selenium Grid which allows the browser to run on a different machine.

There are cloud based services for these clients, for example, Browser Stack https://www.browserstack.com/

| improve this answer | |
  • Hello @Bigwave, thanks for your reply. But today I tried to run the test case from my system and my friend system at a time browser was opened for both of them.I am not sure how it is happened – QAMember Jun 23 '15 at 13:49
  • So, to clarify: - Tomcat is still on your machine? - Both you and your friend accessed the same URL? And when you say "browser was opened for both" do you mean: a) Two new browser windows opened on your machine? or b) A single browser window opened on both your and your friends machine? – Bigwave Jun 23 '15 at 21:39
  • Hello @Bigwave , Yes Tomcat is in my machine. We both accessed the same url (my local server ).For my instance one browser was created in my machine and at the same my friend also found opening browser at the same time in his machine. – QAMember Jun 24 '15 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.