Getting Canopy to work with Selenium Hub locally
See original GitHub issueThis is not an issue with how Canopy needing to be fixed. It is an issue with me not knowing what I am doing and also not knowing where to post questions about canopy other than here. I apologize for the length, I just want to get more info out there
I upgraded to version 1.5.1 of canopy (the minimum version to get chrome headless to work). For some reason I get errors when upgrading to 1.6 and I don’t know enough about F# to debug it.
I have a unit test in F# canopy that works great when I have “start chrome” as well as when I have “start ChromeHeadless”, but when I use this code to have it work in selenium hub:
let capability = new DesiredCapabilities()
capability.SetCapability("browser", "chrome")
// Setup Remote WebDriver to run on Selenium Hub
let remote = Remote("http://localhost:4444/wd/hub/", capability)
start remote
it kicks off this in my selenium hub command prompt:
12:15:09.159 INFO [RequestHandler.process] - Got a request to create a new session: Capabilities {browser: chrome}
12:15:09.170 INFO [TestSlot.getNewSession] - Trying to create a new session on test slot {server:CONFIG_UUID=97a96575-c281-41e8-a330-acf076e12e95, seleniumProtocol=WebDriver, browserName=chrome, maxInstances=5, platformName=WIN10, platform=WIN10}
and then nothing happens that I can see in the grid.
In case I did something wrong when setting up the grid the two commands I used were:
java -jar selenium-server-standalone.jar -role hub
in one browser and this in another
java -jar selenium-server-standalone.jar -role node -hub http://localhost:4444/grid/register
I can go to the grid console and see the browser icons like I am supposed to, so I assume its set up right.
I get the following error with my unit test in Visual Studio.
Message: Class Initialization method TestName.DetailTests+UnitTest.Setup threw exception. System.InvalidOperationException: System.InvalidOperationException: Unable to create session from org.openqa.selenium.remote.NewSessionPayload@11d55a1 Build info: version: ‘3.11.0’, revision: ‘e59cfb3’, time: ‘2018-03-11T20:33:15.31Z’
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
You need to specify browserName instead of browser let capability = new OpenQA.Selenium.Remote.DesiredCapabilities() capability.SetCapability(“browserName”, “firefox”) I also had this issue, but when modified to browserName it started to work.
Thanks.