I have a java web application in which i have integrated some selenium code which basically does the following job : I have a login page with user name and password,so once i fill the details and click on login button, it gives call to the selenium code(java method through servlet),which opens another tab and fills the URL and the same details there on its login page. This works fine with one system.but i have to deploy the .war file in tomcat so that this should work for all the users in same way, but when i am accessing the URL from remote system and logging in ,its opening the browser on my server where my Apache is running.
So my question is how can i achieve this ? if any user access my URL and login it should open another tab in his system rather than on server.
I have tried using grid2, created a hub on server and node on remote system but still when i run my application it opens browser in server. I am not sure how can i achieve this.
there is one link i found which uses java script in chrome with node.js
How can i execute selenium java script code in java.
Any help will be really appreciated thank you.