You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Important: Support for the Android Developer Tools (ADT) in Eclipse is ending, per our announcement. You should migrate your app development projects to Android Studio as soon as possible. For more information on transitioning to Android Studio, see Migrating to Android Studio.
Was trying to get my fork running with Gradle and having a hard time compiling this List
I get the below error
javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
public List findElements(By by){
^
return type List is not compatible with List
where RequiredElementType is a type-variable:
RequiredElementType extends WebElement declared in class AppiumDriver
I tried typecasting return value to List with no luck
javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
public List< RequiredElementType > findElements(By by){
^
return type List< RequiredElementType > is not compatible with List< WebElement >
where RequiredElementType is a type-variable:
RequiredElementType extends WebElement declared in class AppiumDriver
@Jonahss@TikhomirovSergey , Gradle uses javac and it seems it is pretty stringent than eclipse or intellij compilers when it comes to Generics. I am not sure if there can be a workaround to overcome this w/o making code changes around handling generics
Per error even if RequiredElementType extends WebElement, it doesn't translate into List < RequiredElementType > extends List < WebElement >
and hence the declaration of overridden method is invalid as per the compiler
@aniket-21 Sorry for my late responce Too busy.
The fix is here: SeleniumHQ/selenium#863
We need the Selenium version with these changes. Also I'll try to find a way to avoid this problem with Gradle too.
Thanks @TikhomirovSergey , It would be good to have the implementation changes at Selenium end rather than forcing the compilers to accept current one with warnings :)
Activity
bootstraponline commentedon Jul 7, 2015
Jonahss commentedon Jul 7, 2015
I use intellij. That all right?
bootstraponline commentedon Jul 7, 2015
Android Studio is built on Intellij so Intellij has excellent gradle support.
Jonahss commentedon Jul 7, 2015
👍
coding-yogi commentedon Sep 15, 2015
I am using intellij, I can look into this one
coding-yogi commentedon Oct 19, 2015
Was trying to get my fork running with Gradle and having a hard time compiling this List
I get the below error
javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
public List findElements(By by){
^
return type List is not compatible with List
where RequiredElementType is a type-variable:
RequiredElementType extends WebElement declared in class AppiumDriver
I tried typecasting return value to List with no luck
coding-yogi commentedon Oct 19, 2015
javaclient\java-client\src\main\java\io\appium\java_client\AppiumDriver.java:84: error: findElements(By) in AppiumDriver cannot implement findElements(By) in WebDriver
public List< RequiredElementType > findElements(By by){
^
return type List< RequiredElementType > is not compatible with List< WebElement >
where RequiredElementType is a type-variable:
RequiredElementType extends WebElement declared in class AppiumDriver
coding-yogi commentedon Oct 22, 2015
@Jonahss @TikhomirovSergey , Gradle uses javac and it seems it is pretty stringent than eclipse or intellij compilers when it comes to Generics. I am not sure if there can be a workaround to overcome this w/o making code changes around handling generics
Per error even if RequiredElementType extends WebElement, it doesn't translate into List < RequiredElementType > extends List < WebElement >
and hence the declaration of overridden method is invalid as per the compiler
TikhomirovSergey commentedon Nov 2, 2015
@aniket-21 Sorry for my late responce Too busy.
The fix is here:
SeleniumHQ/selenium#863
We need the Selenium version with these changes. Also I'll try to find a way to avoid this problem with Gradle too.
TikhomirovSergey commentedon Nov 2, 2015
#220
coding-yogi commentedon Nov 3, 2015
Thanks @TikhomirovSergey , It would be good to have the implementation changes at Selenium end rather than forcing the compilers to accept current one with warnings :)
TikhomirovSergey commentedon Sep 7, 2016
Was implemented at #442 #465. @aniket-21 Please wait for v5.0.0