-
-
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
Running Same Cucumber Scenario on multiple browsers parallely with Serenity BDD(Java) #2271
Comments
This isn't supported currently. |
OK. |
Perhaps. Is it important to your projects? |
Yes. |
Can your company sponsor it? |
Not sure. Need to discuss. |
Appreciate your help. Is there any other setting i have to use to work with IE and Firefox browser in serenity.Properties file, Thank you |
hi Nithin, could you share the settings required to work with Firefox and IE browsers, thank you. |
Serenity is opening the Browser ( firefox and IE ) and navigating to the Base URl as provided. but then it is throwing no such element exception to perform any action on application. Serenity version 2.2.9, Firefox version 78.4, gecko driver 0.27 19:57:38.586 [main] WARN i.c.junit.CucumberSerenityRunner - By default Cucumber is running in --non-strict mode. @test Oct 29, 2020 7:57:41 PM org.openqa.selenium.remote.DesiredCapabilities firefox 19:57:55.219 [main] DEBUG n.s.core.photography.Darkroom - Opening darkroom Process finished with exit code -1 org.openqa.selenium.NoSuchElementException: Timed out after 2 seconds. Element not found
|
I have to say that testing locally and in parallel it's not a recommend method. The browser focus is an important thing when it comes to locating elements and stuff -- hence your element not found errors. Things gettting even worse when it comes to safari browser. You can even see a "Focus Stolen" message in the mac console and the tests are frereezing entirely. I don't thing that is a serenity's problem, rather than it has to do with system internals. You can fire up manually local docker containers to test in parallel, or with an automated way, use your remote web driver smart in your local rig. If you don't want to mess up with complex things and stuff just use selenoid which offers dockerized linux images with the advantage to choose any browser version you want https://aerokube.com/selenoid/latest/ . Aerokube also offers conf manager to fire up containers with 1 line https://aerokube.com/cm/latest/ . VNC video recording and stuff are supported. Cheers. |
@wakaleo Sorry to pickup this old thread. I would like to know if Serenity supports executing a Scenario or a bunch of feature files to execute on multiple browser types(Chrome, Safari, .....) at the same time. |
HI ,
I have a case where I need to execute same scenario(s) in cucumber Feature file on multiple browsers(chrome,firefox,ie)
I don't want to use Selenium grid setup.
Is there any way this can be achievable in serenity with Java?
The text was updated successfully, but these errors were encountered: