-
Notifications
You must be signed in to change notification settings - Fork 56
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
https://github.com/jakartaee/faces/issues/1722: Adding ported Selenium Ajax Tests #1732
Conversation
My Tests are working once you have Chrome in place. Tests will fail very likely due to the missing Chrome in the build chain so someone from the project should take over. @arjantijms ? |
I have to reupdate this pull request, given there are lots of fixes in the master branch. So expect an update from me next week on this issue. |
@werpu Giving this update a try to see how it would work for us in Open Liberty, and I'm seeing a weird error. I've never used Selenium before, so I was hoping you might be familiar with what's going wrong:
I've seen a StackOverflow that thinks it's a mismatch between Chrome and ChromeDriver versions. My Chrome appears to be v108. Not sure how to check on the ChromeDriver specific version. |
Did not have this issue yet, but it seems like the selenium driver cannot start chrome for whatever reason. Can the user which runs the tests start chrome? Chrome is started headless with --no-sandbox, so either chrome cannot be found or the driver cannot start it for another reason (have been running chrome 108 well here on a mac) The code uses the WebDriverManager to deal with the internals of starting chrome, you might get it up and running by triggering the WebDriverManager differently https://bonigarcia.dev/webdrivermanager/ (The init code is in the class ChromeDevtoolsDriver in the utils package. |
Hi also question back maybe @arjantijms can answer it. I am porting the latest version of the ajax TCK tests to selenium (which seem to be hosted in master, given the updates and fixes), however I cannot get master to compile, the branch 4.0.1 which I used before seems to work fine. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.2.0:copy (copy) on project jakarta-faces-tck: Unable to find/resolve artifact.: Could not find artifact org.glassfish:jakarta.faces:jar:4.0.1-SNAPSHOT in jakarta-staging (https://jakarta.oss.sonatype.org/content/repositories/staging) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command any idea? |
Hmm so snapshots are not deployed anymore? |
Thanks for the quick help... probably reverting it to stable should do the trick, I just need to get the tests running anyway. |
Closing it, have opened a new pull request, with a newer code version, and this time properly on master |
#1732: Selenium tests for the ajax TCK (master branch)
This pull request adds Selenium ported TCK Ajax tests with an added Chrome selenium web driver.
(Chrome must be installed on the system to run the tests). This configuration allows to test for ES6 and newer dom levels, where HTMLUnit fails due to not supporting newer specs.