Closed kazurayam closed 2 years ago
there are lines:
driver.metaClass.userProfile = Optional.of(cup)
driver.metaClass.userDataAccess = Optional.of(instruction)
These are too much "Groovyish". This library should not use Groovy Metaprograming feature.
ChromeOptionsModifiers class uses Grovy's Closure, which require care to translate into Java
I will start doing this as v0.6.0
A fundamental difficulty I found.
com.kazurayam.webdriverfactory.chrome.ChromeOptionsModifiers uses groovy.lang.Closure
class.
If I want to convert this class from Groovy to Java, I have to find out a way how to live without Closure.
The Closure of Groovy and Lambda of Java is not equivalent. It is not straight forward to rewrite it.
The 0.6.0-SNAPSHOT has done it.
For better portability, I should write it in Java 8.