serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

getting session not created: No matching capabilities found error message when running tests on selenoid #256

Open cvarshn-cloud opened 3 years ago

cvarshn-cloud commented 3 years ago

@wakaleo @jeffjensen @ereticul @YamStranger @cliviu I am running my tests on selenoid but getting no matching capabilities error as its not recognizing serenity.driver.capabilities from serenity.properties file. How to pass driver capabilities in serenity.properties file ,

below are my entries webdriver.driver=remote webdriver.remote.driver=chrome webdriver.remote.os=WINDOWS webdriver.remote.browser.version=88.0 webdriver.remote.browser=chrome webdriver.remote.url=http://localhost:4444/wd/hub serenity.console.colors=true

chrome.capabilities.unexpectedAlertBehaviour=ignore

chrome.capabilities.acceptSslCerts=true

chrome.capabilities.handlesAlerts=true

chrome.capabilities.browserName=chrome

chrome.capabilities.browserVersion="88.0"

serenity.driver.capabilities="browserName:chrome; version:88.0" - this is not working

Error trace from Docker Container: 2021/04/13 19:18:30 [-] [NEW_REQUEST] [unknown] [172.17.0.1]

2021/04/13 19:18:30 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.17.0.1]

2021/04/13 19:18:30 [13] [LOCATING_SERVICE] [chrome] [88.0"]

2021/04/13 19:18:30 [13] [ENVIRONMENT_NOT_AVAILABLE] [chrome] [88.0"]

2021/04/13 19:25:17 [-] [NEW_REQUEST] [unknown] [172.17.0.1]

2021/04/13 19:25:17 [-] [NEW_REQUEST_ACCEPTED] [unknown] [172.17.0.1]

2021/04/13 19:25:17 [14] [LOCATING_SERVICE] [chrome] [88.0]

2021/04/13 19:25:17 [14] [USING_DOCKER] [chrome] [88.0]

2021/04/13 19:25:17 [14] [CREATING_CONTAINER] [selenoid/vnc:chrome_88.0]

2021/04/13 19:25:17 [14] [STARTING_CONTAINER] [selenoid/vnc:chrome_88.0] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9]

2021/04/13 19:25:18 [14] [CONTAINER_STARTED] [selenoid/vnc:chrome_88.0] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9] [0.46s]

2021/04/13 19:25:19 [14] [SERVICE_STARTED] [selenoid/vnc:chrome_88.0] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9] [0.82s]

2021/04/13 19:25:19 [14] [PROXY_TO] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9] [http://172.17.0.5:4444/]

2021/04/13 19:25:19 [14] [SESSION_ATTEMPTED] [http://172.17.0.5:4444/] [1]

2021/04/13 19:25:19 [14] [SESSION_FAILED] [http://172.17.0.5:4444/] [500 Internal Server Error]

2021/04/13 19:25:19 [14] [REMOVING_CONTAINER] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9]

2021/04/13 19:25:19 [14] [CONTAINER_REMOVED] [a8124955119218673abb6fffdf8b4799eb02c95dfb63dc6121aae41226575da9]

cvarshn-cloud commented 3 years ago

@wakaleo Can you please look into this issue?

wakaleo commented 3 years ago

I don't have a timeline for when I will have time to look at this, but others are welcome to pick it up. Alternatively, if it is of value for your company you could consider asking for some commercial support.

cvarshn-cloud commented 3 years ago

@wakaleo I need info on how to pass chrome capabilities like Platform, Browser from serenity file for remote webdriver. I tried everything but not working.