Using a Java library with Scala reserved words
-
22-09-2019 - |
Question
I'm using an external library written in Java (Selenium). One of the function calls has the signature type(String, String)
, and I keep getting compiler errors when trying to call it from Scala, that is:
selenium.type("ab","abc")
Is there a workaround for this issue?
Solution
selenium.`type`("ab","abc")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow