-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capability with a colon #1479
Comments
Could you post your serenity.properties or serenity.conf file? |
Define the default driver#webdriver.driver=chrome chrome.switches=--args -disable-extensions serenity.logging=QUIET |
The exception is [main] ERROR net.serenitybdd.core.Serenity - TEST FAILED AT STEP Given user navigates to SGATE homepage on his browser |
Hi John, any recommendations? |
Handling the colon needs a change to the code, but your reports mention Firefox rather than chrome, so you may also need to add serenity.remote.driver=chrome. |
Much appreciated I have updated remote driver, I guess handling it the colon will be on future releases? |
much appreciated Liviu, with the code that you have commited i guess the below config should work? serenity.driver.capabilities="e34:token:ccccccccc" Where can i get the build artifact of serenity-core that contains your commit? i understand that it won't be a released version |
hi @Oagile , yes, it should work , see the tests from the commit |
awesomeness @cliviu |
Fixed. |
much appreciated, i guess that will be this dependency net.serenity-bdd serenity-core 2.0.33 |
Yes. The rule is that all options need to be prefixed with “—“ |
awesomeness, busy updating project dependencies. hmmm not sure if i follow John .i.e. regarding the prefix. e.g? |
Actually, the prefix (two dashes) is only needed for Chrome options |
ooh got that... much appreciated |
_ / / |_ | / | _| | / \ | _| | | ___| _ TEST FAILED WITH ERROR: Create a vehicle Group[main] ERROR net.thucydides.core.steps.ConsoleLoggingListener - TEST FAILED AT STEP Given user navigates to SGATE homepage on his browser |
inside serenity.properties i have serenity.driver.capabilities="e34:token:99999999-xxxx-xx" |
bummer, i have removed the quotes.... all good... Happiness :-) |
Hi, i want to pass this option : serenity.driver.capabilities=se:downloadsEnabled:true. |
Hi,
I have a driver capability that i want to set "e34:token". on the serenity.properties i have serenity.driver.capabilities="e34:token:cccccccccccc" . The problem i'm having is the capability that i want to set has a colon in it :-(, is there a way for me to programatically set capability before the driver is instantiated?
On my old tests i have something like this :
ChromeOptions options = new ChromeOptions();
options.setCapability("e34:token", "cccccccccccc");
Below is the exception that i'm getting with serenity
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z'
System info: host: 'LW09643872', ip: '172.27.248.48', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_161'
Driver info: driver.version: DefaultRemoteDriver
net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate new WebDriver instance of type class org.openqa.selenium.firefox.FirefoxDriver (A test token needs to be provided via the e34:token capability. http://x.x.x.xx:xxx/ui/test-projects/selfservice
The text was updated successfully, but these errors were encountered: