Starting phantomjs node on Selenium grid on a external machine - selenium

I am trying to start a phantomjs node on a virtual machine to connect to my own computer which hosts the hub. I have gotten a generic node set up externally (5 instances of firefox, chrome and one instance of IE). When I try and set up a phantomjs node however, it registers fine from the command prompt, but when I go to the grid console, the following message is displayed:
DefaultRemoteProxy unknown version,Connect to failed: [myIp] Connection refused: connect
Does anyone have any experience with this?

Connection refused when phantomjs is run on different machine than selenium hub
Referenced this question... Basically had to add the IP of my node machine to the --webdriver param in the command line...

Related

Cannot Connect Other Computers to Selenium Grid

I am able to register nodes to the hub when I'm working on just one computer, but when I try to connect a node that is running on another computer I get a timeout or a message saying the hub must be down or not responding. I have no idea how to solve this.
After starting the hub I get the message: Nodes should register to http:192.168...:4444/grid register.
A tutorial said that
"you can check if Machine B can access the hub's web interface by launching a browser there and going to where "iporhostnameofmachineA" should be the IP address or the hostname of the machine where the hub is running. Since Machine A's IP address is 192.168.1.3, then on the browser on Machine B you should type >http://192.168.1.3:4444/grid/console."
But chrome is giving me a "This site can't be reached error". This must be an issue with my network configuration, but I do not how what I should do to fix it.
I would try using the command 'telnet 192.168.1.3 4444' from your Selenium node and see if it connects. On the machine running the hub, (so 192.168.1.3) run 'netstat -antp | grep 4444' (assuming it's a linux machine) and make sure you see an entry showing that the port is being listened on. If it's a windows machine you can still use netstat but not grep I think. Once you confirm that the hub is indeed listening on port 4444, and you can ping 192.168.1.3, but cannot telnet to port 4444, you have basically determined that there is a firewall issue. Then you would need to look into the firewalls on both machines, and any firewalls between them.

502 proxy error, Oracle VM + Hortonworks sandbox

I am new to Hadoop. Oracle VM with Hortonworks sandbox (OS Red Hat 64bit) with HDP 2.3.2 is up and running. When i am trying to test via http://192.168.56.101 i get the 502 proxy error.
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
I have done the same installation and configuration on both my pc and mac and i get the same error. I have tried the test from IE and chrome as well.
I also got same issue when I try it in another browser it worked, so you can try in different browser. And also increase your VMware allocated memory for hortonworks VM.
Click on machine tab of Horton sandbox virtual box running instance and click Reset. It worked for me.
Usually it happens when the Ambari is restarting or shutting down. Just wait for a few seconds and it should resolve.
You can also try to open it in incognito mode or clear the cookies.
To clear the cookies, for the chrome browser:
Click on i icon which is at the left side of URL
Click on Cookies
Remove all cookies one-by-one
It should solve.

Teamcity - Selenium Grid environment - Unable to connect to the remote server

I am running a small selenium project using grid setup. All is fine when I run locally which has the hub and the node running in the same machine. What I did next was kept the hub running in my local machine and tried running the test through teamcity. I presume that the test will run in one of the build agents. When I kick start the build job, I got the following exception. Not sure what the issue is.
Test(s) failed. System.Net.WebException : Unable to connect to the remote server ---->
System.Net.Sockets.SocketException : A connection attempt failed because the connected
party did not properly respond after a period of time, or established connection failed
because connected host has failed to respond 192.168.6.121:80 at
System.Net.HttpWebRequest.GetResponse()
Also, the team city build agent IP is 192.168.7.132 whereas I am getting a message that it is unable to contact 192.168.6.121
Is there something happening which I am not aware of.
The selenium server is up and running in my local machine. and all is fine at the server end.
Any pointers will be much helpful

Selenium WebDriver is getting Connection refused - Connection refused (Errno::ECONNREFUSED)

I am using Selenium WebDriver with Capybara for Cucumber features for parallel testing. But I am getting
Connection refused - Connection refused (Errno::ECONNREFUSED)
Is this error related to Selenium WebDriver? Is it a known issue with the driver? Is it something else?
That message indicates that the target host was unreachable, or was not listening for new connections.
I'd recommend verifying that the target can in fact be reached over the network (using curl, ping, tracert, or whatever tool you prefer), since the source of your problem is very likely external to your test code itself.

Selenium Grid Error

Has anyone seen this error in CentOS, when running Selenium Grid:
SEVERE: Could not find any remote control providing the '*chrome' environment. Please make sure you started some remote controls which registered as offering this environment.
thanks!
I take it you started the hub but didn't start any nodes? You must start a node so it can run the RC Server needed to handle your client request.