Skip to content

Commit 10ab22a

Browse files
Merge pull request #778 from TikhomirovSergey/master
Update to selenium 3.7.1
2 parents cdf001a + ed22772 commit 10ab22a

File tree

6 files changed

+60
-147
lines changed

6 files changed

+60
-147
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ compileJava {
5454
]
5555
}
5656

57-
ext.seleniumVersion = '3.6.0'
57+
ext.seleniumVersion = '3.7.1'
5858

5959
dependencies {
6060
compile ("org.seleniumhq.selenium:selenium-java:${seleniumVersion}") {
@@ -197,6 +197,11 @@ uploadArchives {
197197
url 'https://github.com/SrinivasanTarget'
198198
id 'SrinivasanTarget'
199199
};
200+
developer {
201+
name 'Mykola Mokhnach'
202+
url 'https://github.com/mykola-mokhnach'
203+
id 'mykola-mokhnach'
204+
};
200205
}
201206
licenses {
202207
license {

src/main/java/io/appium/java_client/events/DefaultAspect.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ class DefaultAspect {
7373
+ "dismiss(..))";
7474
private static final String EXECUTION_ALERT_SEND_KEYS = "execution(* org.openqa.selenium.Alert."
7575
+ "sendKeys(..))";
76-
private static final String EXECUTION_ALERT_AUTHENTICATION = "execution(* org.openqa.selenium."
77-
+ "Alert.setCredentials(..)) || "
78-
+ "execution(* org.openqa.selenium.Alert.authenticateUsing(..))";
7976
private static final String EXECUTION_WINDOW_SET_SIZE = "execution(* org.openqa.selenium."
8077
+ "WebDriver.Window.setSize(..))";
8178
private static final String EXECUTION_WINDOW_SET_POSITION = "execution(* org.openqa.selenium.WebDriver."
@@ -408,26 +405,6 @@ public void afterAlertSendKeys(JoinPoint joinPoint) throws Throwable {
408405
}
409406
}
410407

411-
@Before(EXECUTION_ALERT_AUTHENTICATION)
412-
public void beforeAlertAuthentication(JoinPoint joinPoint) throws Throwable {
413-
try {
414-
listener.beforeAuthentication(driver,
415-
castTarget(joinPoint), castArgument(joinPoint, 0));
416-
} catch (Throwable t) {
417-
throw getRootCause(t);
418-
}
419-
}
420-
421-
@After(EXECUTION_ALERT_AUTHENTICATION)
422-
public void afterAlertAuthentication(JoinPoint joinPoint) throws Throwable {
423-
try {
424-
listener.afterAuthentication(driver, castTarget(joinPoint),
425-
castArgument(joinPoint, 0));
426-
} catch (Throwable t) {
427-
throw getRootCause(t);
428-
}
429-
}
430-
431408
@Before(EXECUTION_WINDOW_SET_SIZE)
432409
public void beforeWindowIsResized(JoinPoint joinPoint) throws Throwable {
433410
try {

src/main/java/io/appium/java_client/events/DefaultListener.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,13 @@ public void beforeAlertDismiss(WebDriver driver) {
183183
}
184184

185185
@Override
186+
@Deprecated
186187
public void beforeAuthentication(WebDriver driver, Alert alert, Credentials credentials) {
187188
((AlertEventListener) dispatcher).beforeAuthentication(driver, alert, credentials);
188189
}
189190

190191
@Override
192+
@Deprecated
191193
public void afterAuthentication(WebDriver driver, Alert alert, Credentials credentials) {
192194
((AlertEventListener) dispatcher).afterAuthentication(driver, alert, credentials);
193195
}

src/main/java/io/appium/java_client/events/api/general/AlertEventListener.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,31 @@ public interface AlertEventListener extends Listener {
7979
* This action will be performed each time before
8080
* {@link org.openqa.selenium.Alert#setCredentials(Credentials)} and
8181
* {@link org.openqa.selenium.Alert#authenticateUsing(Credentials)}
82+
* It is deprecated because methods {@link org.openqa.selenium.Alert#setCredentials(Credentials)} and
83+
* {@link org.openqa.selenium.Alert#authenticateUsing(Credentials)} were removed from selenium java client
84+
* at 3.8.0. This listener method is going to be removed as well.
8285
*
8386
* @param driver WebDriver
8487
* @param alert {@link org.openqa.selenium.Alert} which is receiving user credentials
8588
* @param credentials which are being sent
8689
*/
90+
@Deprecated
8791
void beforeAuthentication(WebDriver driver, Alert alert,
8892
Credentials credentials);
8993

9094
/**
9195
* This action will be performed each time after
9296
* {@link org.openqa.selenium.Alert#setCredentials(Credentials)} and
93-
* {@link org.openqa.selenium.Alert#authenticateUsing(Credentials)}
97+
* {@link org.openqa.selenium.Alert#authenticateUsing(Credentials)}.
98+
* It is deprecated because methods {@link org.openqa.selenium.Alert#setCredentials(Credentials)} and
99+
* {@link org.openqa.selenium.Alert#authenticateUsing(Credentials)} were removed from selenium java client
100+
* at 3.8.0. This listener method is going to be removed as well.
94101
*
95102
* @param driver WebDriver
96103
* @param alert {@link org.openqa.selenium.Alert} which has received user credentials
97104
* @param credentials which have been sent
98105
*/
106+
@Deprecated
99107
void afterAuthentication(WebDriver driver, Alert alert,
100108
Credentials credentials);
101109
}

0 commit comments

Comments
 (0)