Selenium support for Java 11

1,103 views
Skip to first unread message

Divanshu Maheshwari

unread,
Jun 12, 2018, 2:39:48 AM6/12/18
to Selenium Users
Currently latest Selenium WebDriver supports java 8 but what are the plans to enable Selenuim WebDriver to support Java 11 ?
There is a POC currently going on in our organization to look at the impact it could make. I need to find the answers to it. 
If there is anyone who knows about this , please share your thoughts.

⇜Krishnan Mahadevan⇝

unread,
Jun 12, 2018, 2:41:50 AM6/12/18
to Selenium Users
Are you facing any issues when you use Selenium with JDK11 ? If yes, what are they ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8e3c36f1-401f-4651-affb-6fe775cf81be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Divanshu Maheshwari

unread,
Jun 12, 2018, 2:48:34 AM6/12/18
to seleniu...@googlegroups.com
JDK 11 is not yet formally released.
I would like to know Selenium's plan to bring webdriver to java 11 compatibility

⇜Krishnan Mahadevan⇝

unread,
Jun 12, 2018, 2:53:26 AM6/12/18
to Selenium Users
I am not part of the Selenium Dev group. So I cannot give a definite answer.

But here's my take on that. I guess Selenium would perhaps wait for JDK11 to be formally released before they can go about adopting and making it JDK11 compatible. I am guessing that Selenium should still be able to run in JDK11, because Java is supposed to be backward compatible.

You can perhaps post your question on the selenium-dev forum or reach out to one of the folks from the core dev group via the IRC chat

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Divanshu Maheshwari

unread,
Jun 12, 2018, 3:36:41 AM6/12/18
to seleniu...@googlegroups.com
Hi, Thanks for you reply.

I too agree with that, that Selenium would wait for Java 11 to be released publically to change its stand on the WebDriver's compatibility. But here is a catch, Selenium uses some of the Java Classes and APIs which will now be deprecated in the Java 11 release. So, in order for the Selenium to compile their code again without any errors they will have to update the Webdriver to make it compatible with Java 11 (here it means referencing correct and new Java Class and API from Java 11).

We tried analysing our testing framework and found various classes which were being used in our framework and will no more be supported by Java 11 and hence concluded that similar would be the case with WebDriver as well.
So untill WebDriver is getting updated with Java 11, there is no point in resolving the errors we are finding in our framework.

Thanks and Regards,
Divanshu Maheshwari


⇜Krishnan Mahadevan⇝

unread,
Jun 12, 2018, 4:58:06 AM6/12/18
to Selenium Users
>>> But here is a catch, Selenium uses some of the Java Classes and APIs which will now be deprecated in the Java 11 release. 

Are you referring to the deprecated list furnished here: https://download.java.net/java/early_access/jdk11/docs/api/deprecated-list.html ?
If yes, it would be good if you could maybe call out the list of impacted WebDriver classes which are most likely to need attention and then help furnish the list as a bug on the Github issues here : https://github.com/seleniumhq/selenium/issues 

>>> So, in order for the Selenium to compile their code again without any errors they will have to update the Webdriver to make it compatible with 

Java 11 (here it means referencing correct and new Java Class and API from Java 11).
I doubt this use-case immediately, because I guess selenium would logically speaking move over to the next JDK that is the bare minimum ask, and make itself compliant to that. So it would take sometime before we reach Java 11.  

>>> So untill WebDriver is getting updated with Java 11, there is no point in resolving the errors we are finding in our framework.

Why not contribute towards that via a Pull Request? Selenium is an open-source project and the contributors welcome PRs from anyone.

But in any-case, you should ideally speaking post it as a question on the selenium-developers google forum or on the IRC chat to get an official stance.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages