diff --git a/pom.xml b/pom.xml
index 65ec7bb..d9bc933 100644
--- a/pom.xml
+++ b/pom.xml
@@ -135,7 +135,7 @@
org.seleniumhq.selenium
selenium-java
- 4.6.0
+ 4.11.0
io.appium
@@ -154,7 +154,7 @@
selenium-support
- 8.1.0
+ 8.5.0
net.lightbody.bmp
@@ -164,13 +164,17 @@
com.google.guava
guava
- 31.1-jre
+ 32.0.1-jre
com.codeborne
selenide
-
- 6.12.2
+ 6.17.2
+
+
+ io.github.bonigarcia
+ webdrivermanager
+ 5.5.2
org.slf4j
diff --git a/src/main/java/testUI/BrowserLogs.java b/src/main/java/testUI/BrowserLogs.java
index cec9000..861a6e5 100644
--- a/src/main/java/testUI/BrowserLogs.java
+++ b/src/main/java/testUI/BrowserLogs.java
@@ -86,8 +86,6 @@ public void setLogs() {
}
if (Configuration.browserLogs || Configuration.logNetworkCalls) {
Configuration.selenideBrowserCapabilities.setCapability("goog:loggingPrefs", logPrefs);
- Configuration.selenideBrowserCapabilities.setCapability(
- CapabilityType.LOGGING_PREFS, logPrefs);
}
}
diff --git a/src/test/java/TestRunners/TestAndroidLocal.java b/src/test/java/TestRunners/TestAndroidLocal.java
index ca517d2..8934b20 100644
--- a/src/test/java/TestRunners/TestAndroidLocal.java
+++ b/src/test/java/TestRunners/TestAndroidLocal.java
@@ -10,6 +10,8 @@
import static testUI.Configuration.ANDROID_PLATFORM;
import static testUI.TestUIServer.stop;
import static testUI.UIOpen.open;
+import static testUI.UIUtils.executeJs;
+import static testUI.Utils.AppiumHelps.sleep;
import static testUI.Utils.By.byMobileCss;
import static testUI.elements.TestUI.E;
@@ -23,14 +25,14 @@ public void testAndroidBrowser() {
Configuration.automationType = ANDROID_PLATFORM;
Configuration.installMobileChromeDriver = true;
open("https://www.google.com");
- googleLandingPage.getGoogleSearchInput().scrollTo().view(true)
- .given("Check search input visible and set value").waitFor(5)
- .untilIsVisible();
+ executeJs("arguments[0].value='TestUI';", googleLandingPage.getGoogleSearchInput()
+ .getMobileElement());
+ sleep(2000);
stop();
Configuration.testUILogLevel = LogLevel.DEBUG;
open("https://www.google.com");
- googleLandingPage.getGoogleSearchInput().scrollTo().view(true)
- .given("Check search input visible and set value");
+ executeJs("arguments[0].value='TestUI';", googleLandingPage.getGoogleSearchInput()
+ .getMobileElement());
}
@Test
diff --git a/src/test/java/TestRunners/TestBrowser.java b/src/test/java/TestRunners/TestBrowser.java
index 2058495..df709de 100644
--- a/src/test/java/TestRunners/TestBrowser.java
+++ b/src/test/java/TestRunners/TestBrowser.java
@@ -5,7 +5,6 @@
import org.junit.Test;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
-import org.openqa.selenium.remote.DesiredCapabilities;
import pages.GoogleLandingPage;
import testUI.Configuration;
@@ -53,8 +52,8 @@ public void setDriverTest() {
"--user-agent=Agent", "--ignore-certificate-errors", "--headless", "--remote-allow-origins=*");
Configuration.chromeOptions = options;
selenideBrowserCapabilities.setBrowserName("chrome");
- open("https://www.whatsmyua.info/");
- E(byCssSelector("textarea")).waitFor(10).untilHasText("Agent");
+ open("https://www.whatismybrowser.com/detect/what-is-my-user-agent/");
+ E(byCssSelector("#detected_value a")).waitFor(10).untilHasText("Agent");
sleep(1000);
stop();
}
@@ -98,8 +97,8 @@ public void testDesktopCustomDriverBrowser() {
options.addArguments("--headless");
ChromeDriver chromeDriver = new ChromeDriver(options);
setDriver(chromeDriver);
- open("https://www.whatsmyua.info/");
- E(byCssSelector("textarea")).waitFor(10).untilHasText(userAgent);
+ open("https://www.whatismybrowser.com/detect/what-is-my-user-agent/");
+ E(byCssSelector("#detected_value a")).waitFor(10).untilHasText(userAgent);
stop();
open("https://www.google.com");
stop();