-
-
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
Different Actors cannot be made to share same browser #989
Comments
Actually, having played around with things, I can retrieve actors via a custom method like this: But that seems like a hack - is there a better way than this? |
The best way would be to write your own |
I'm assuming this question is answered? |
I might submit a PR as the current behaviour is not as expected? |
Sure, please do. |
Which current behaviour is not as expected? |
E.g serenity.use.unique.browser property should affect browser instantation, so my proposal would be to invoke the workaround code I suggested above if this property is set true. |
Good point, but |
Okay, will do but I had |
I'm configuring my Screenplay environment using
OnStage.setTheStage(new OnlineCast());
, and then obtaining actor references usingOnStage.theActorCalled(<actor name>)
, however I find a new browser window is created for each actor, regardless of the value of propertyserenity.use.unique.browser
. On the system under test, this actually causes problems with the running of the system. This behaviour can be reproduced in the todo demo project by:net.serenitybdd.demos.todos.cucumber.RecordTodos
Outcome is that 3 browsers are fired up.
How can I ensure that all actors share the same browser please?
The text was updated successfully, but these errors were encountered: