-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
BeforeAWebdriverScenario not being called? - Serenity 3.1.20 #2705
Comments
Could you try with 3.2.0, it seems to work fine with that version. |
I've upgraded to 3.2.0 but it seems is not being called. |
Put a breakpoint in the |
PreScenarioFixtures neither is being called :( |
Sound's like you mght have a version conflict - check that all of the Serenity libraries are using the same version. |
I can't reproduce the issue - can you produce a sample project that reproduces this behaviour? What driver are you using? |
Using Chrome:
|
It should work fine; I suspect a project-specific issue of some kind, which I can't troubleshoot without seeing your project. Put a breakpoint in the newInstance() method of the ChromeDriverProvider class and step through the code - it should call your custom classes in the enhancedCapabilitiesConfiguredIn() method. Step into that method and see what it does. |
Sorry, but I've already debugged and I don't see any code where is calling the extensions. I've not seen any code to do it (see below):
|
I've seen the problem it that it doesn't enter in the code because the next condition is false (no base step listener is registered).
I don't see why... |
This happens because I am debugging from feature. It works if I debug from TestRunner. |
You can't run a Serenity test directly from the feature, you need to run it through a test runner. |
Well, except for the BeforeAWebDriver, everything else was working executing/debugging directly from the feature. |
It will work partially but the classes will not be all configured, so it won't work the way you expect. |
Thanks! |
HI @xescuder, I have troubles to call BeforeAWebdriverScenario. This is my code: ************ serenity.properties ************ webdriver.driver = chrome *********** BeforeABrowserStackScenario ***********
My serenity conf don't recognize my class that implements Before Webdriver Scenario. I'm using serenit-bdd 3.2.0 |
Hi. I finally solved using FixtureService. This is my code using chrome and firefox extensions:
|
Hi. After upgrading to 3.1.20, I am debugging my extensions and it seems they are not being called.
serenity.conf:
class:
Thanks a lot.
The text was updated successfully, but these errors were encountered: