Skip to content

Commit

Permalink
Check style issue was fixed. build.gradle was improved
Browse files Browse the repository at this point in the history
  • Loading branch information
TikhomirovSergey committed Aug 23, 2017
1 parent 538f1ed commit 577b030
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 12 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'signing'
apply plugin: 'maven-publish'

group 'io.appium'
version '5.0.0-BETA9'
version '5.0.0'

repositories {
jcenter()
Expand Down Expand Up @@ -54,11 +54,21 @@ compileJava {
]
}

ext.seleniumVersion = '3.5.+'

dependencies {
compile('org.seleniumhq.selenium:selenium-java:3.5.1'){
compile ("org.seleniumhq.selenium:selenium-java:${seleniumVersion}") {
force = true

exclude module: 'cglib'
exclude group: 'com.google.code.gson'
}
compile ("org.seleniumhq.selenium:selenium-support:${seleniumVersion}") {
force = true
}
compile ("org.seleniumhq.selenium:selenium-api:${seleniumVersion}") {
force = true
}
compile 'com.google.code.gson:gson:2.8.1'
compile 'org.apache.httpcomponents:httpclient:4.5.3'
compile 'cglib:cglib:3.2.5'
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/io/appium/java_client/AppiumDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ public List<T> findElementsByXPath(String using) {
try {
execute(DriverCommand.SWITCH_TO_CONTEXT, ImmutableMap.of("name", name));
return this;
}
catch (WebDriverException e) {
} catch (WebDriverException e) {
throw new NoSuchContextException(e.getMessage(), e);
}
}
Expand Down

1 comment on commit 577b030

@zyou1986
Copy link

@zyou1986 zyou1986 commented on 577b030 Aug 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group 'io.appium'
version '5.0.0'
ext.seleniumVersion = '3.5.+'

Excuse me, sir,I downloaded the latest project,and update build gradle,but I have this problem:

Error:(44, 42) java: io.appium.java_client.MobileElement中的findElements(org.openqa.selenium.By)无法覆盖org.openqa.selenium.remote.RemoteWebElement中的findElements(org.openqa.selenium.By)
  返回类型java.util.List<io.appium.java_client.MobileElement>与java.util.List<org.openqa.selenium.WebElement>不兼容
~~~~~~~~~~~~~~~
Could you tell me how to solve it?

Please sign in to comment.