-
-
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
Serenity BDD Maven Fails on GitLab CI -Timeout, NoSuchElementException, Element not found instead in local machine works #1935
Comments
If it works locally it’s generally an issue with the test code or the server config. Timings can be different in a headless context. |
Could you tell me in details which server you are talking about? If you talk about the selenium/standlone-chrome is the same container that I run locally. Could you suggest me some test to do troubleshooting? |
Looking at the screenshots can help. If it just happens on Gitlab maybe it’s more a question for their teams? |
Thanks for your suggestion @wakaleo , I will post this issue even to the GitLab's team. |
I think the chrome browser generally needs to be installed, though I may be wrong |
I'm writing just here because in the others forum I don't get any reply yet. I tried to log in ssh in the machine of the gitlabrunner and trigger manually the mvn verify (without gitlab pipieline) but the issue persists. So the problem isn't of GitLab Runner. @wakaleo, as u suggest me, I have analyzed the screenshots and, the first step (open page), open a blank page so that selenium cannot find any elements in the page. Do you know the reason for which the page doesn't load correctly? I thought that the problem can depend by the os of the gitlabrunner (linux 3.10.0-957.1.3.el7.x86_64). |
A blank page is often a driver version issue. |
I thought that the docker image selenium/standalone-chrome was created to solve driver version issues. Isn't that so? I will try to use others tag of the same image (that locally works) to solve the issue. |
You would need to ask the maintainers of that image. |
If I run the maven serenity test in local machine, all works fine. Instead when I run the pipeline on GitLab CI, it fails giving me in the console the following error:
The configuration that I used is very simple:
this is my pom.xml:
this is my .gitlab-ci.yml
and, finally, this is my serenity.conf:
If i start locally the container selenium/standlone-chrome (see the following image)
and I run mvn verify in the console of my local machine (with headless true or false), all works as expected!
Tell me if I missed some important info, so I can add them.
This problem is driving me crazy! Any suggestion is appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: