Distinguish different Selenium Grid node

后端 未结 3 1258
被撕碎了的回忆
被撕碎了的回忆 2021-01-16 03:14

I\'m dealing right now with following problem:

My Selenium Grid instance should connect few nodes which are in different locations and I would like to run each test

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-16 04:03

    When you start the node and you are specifying the capabilities, you might consider setting maxInstances. This value controls the number of concurrent instances of that browser which can be opened on that node. If you set this to 1 - you can run tests in parallel against the Grid but only one browser will open at a time on each node.

    java.exe -jar selenium-server.jar -role node -browser "browserName=firefox,maxInstances=1,platform=ANY,seleniumProtocol=WebDriver"

提交回复
热议问题