From 75c48be1fbe7b28d63131a03c5104f4e6c829d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alaksiej=20Miale=C5=A1ka?= Date: Fri, 20 Nov 2026 16:49:17 +0100 Subject: [PATCH 1/4] Selenium 4.53.0 update +semver:feature Update maven package versions libraries --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 412e696..cbd2f41 100644 --- a/pom.xml +++ b/pom.xml @@ -114,17 +114,17 @@ org.seleniumhq.selenium selenium-api - 4.52.0 + 4.53.0 org.seleniumhq.selenium selenium-support - 4.52.0 + 4.53.0 org.seleniumhq.selenium selenium-chrome-driver - 4.51.0 + 4.53.0 test From 8f289d409ffb69c3c917bef00fff136e399f2e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alaksiej=20Miale=C5=A1ka?= Date: Fri, 20 Nov 2026 18:02:35 +0100 Subject: [PATCH 2/4] update to Appium 4 (beta) and wincore driver in ADO pipeline update commons-lang to 3.22.0 update plugin versions --- azure-pipelines.yml | 12 +++++------- pom.xml | 8 ++++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4180930..626563e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,20 +53,20 @@ jobs: versionSpec: '22.x' - task: CmdLine@2 - displayName: 'Install Appium' + displayName: 'Install Appium v4 (beta)' inputs: script: | echo "Installing Appium" - npm install -g appium@latest + npm install -g appium@beta appium --version echo "Appium installed" - task: CmdLine@2 - displayName: 'Install Appium Windows Driver' + displayName: 'Install Appium Windows Driver (wincore)' inputs: script: | echo "Installing Appium Windows Driver" - appium driver install windows + appium driver install --source=npm appium-wincore-driver appium driver list echo "Appium Windows Driver installed" @@ -75,10 +75,8 @@ jobs: inputs: script: | echo "Installing and Running Appium doctor" - npm install -g request@2.34.0 - appium driver doctor windows + appium driver doctor wincore echo "Appium doctor executed" - echo "Appium doctor installed and executed" - task: CmdLine@2 displayName: 'Start Appium server' diff --git a/pom.xml b/pom.xml index cbd2f41..30ddb6f 100644 --- a/pom.xml +++ b/pom.xml @@ -136,7 +136,7 @@ org.apache.commons commons-lang3 - 3.21.0 + 3.22.0 test @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.15.0 + 3.16.0 11 11 @@ -183,7 +183,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.5.6 + 3.6.1 ${surefireArgLine} -Dfile.encoding=UTF-8 false @@ -255,7 +255,7 @@ org.codehaus.mojo versions-maven-plugin - 2.21.0 + 2.23.0 From 4447dde567d821c0671afb86524971e802081449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alaksiej=20Miale=C5=A1ka?= Date: Fri, 20 Nov 2026 18:09:35 +0100 Subject: [PATCH 3/4] Set Wincore automation name and rollback surefire plugin to version that supports suites --- pom.xml | 2 +- .../java/tests/applications/windowsApp/WindowsApplication.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 30ddb6f..2ca283a 100644 --- a/pom.xml +++ b/pom.xml @@ -183,7 +183,7 @@ org.apache.maven.plugins maven-surefire-plugin - 3.6.1 + 3.5.6 ${surefireArgLine} -Dfile.encoding=UTF-8 false diff --git a/src/test/java/tests/applications/windowsApp/WindowsApplication.java b/src/test/java/tests/applications/windowsApp/WindowsApplication.java index d16f4b7..1a8d27a 100644 --- a/src/test/java/tests/applications/windowsApp/WindowsApplication.java +++ b/src/test/java/tests/applications/windowsApp/WindowsApplication.java @@ -15,6 +15,7 @@ public class WindowsApplication implements IApplication { WindowsApplication(long implicitWaitSeconds, String appPath, URL serviceUrl) { WindowsOptions options = new WindowsOptions(); options.setApp(appPath); + options.setAutomationName("Wincore"); driver = new WindowsDriver(serviceUrl, options); setImplicitWaitTimeout(Duration.ofSeconds(implicitWaitSeconds)); } From 532d8a8aa633a7601c2a7254302ebe519d9e39c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alaksiej=20Miale=C5=A1ka?= Date: Fri, 20 Nov 2026 19:19:13 +0100 Subject: [PATCH 4/4] update to Node v26 in ADO pipeline add selenium-devtools-latest and sfj-simple to reduce warnings in tests Update Windows application tests --- azure-pipelines.yml | 2 +- pom.xml | 12 ++++++++++++ .../tests/elements/CachedWindowsElementTests.java | 2 +- src/test/java/tests/elements/ElementFinderTests.java | 2 +- .../java/tests/elements/WindowsElementTests.java | 6 ++++-- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 626563e..8543028 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,7 +50,7 @@ jobs: - task: NodeTool@0 displayName: 'Install Node.js' inputs: - versionSpec: '22.x' + versionSpec: '26.x' - task: CmdLine@2 displayName: 'Install Appium v4 (beta)' diff --git a/pom.xml b/pom.xml index 2ca283a..06be764 100644 --- a/pom.xml +++ b/pom.xml @@ -127,6 +127,18 @@ 4.53.0 test + + org.seleniumhq.selenium + selenium-devtools-latest + 4.53.0 + test + + + org.slf4j + slf4j-simple + 2.0.19 + test + io.appium java-client diff --git a/src/test/java/tests/elements/CachedWindowsElementTests.java b/src/test/java/tests/elements/CachedWindowsElementTests.java index 05b7de4..5845238 100644 --- a/src/test/java/tests/elements/CachedWindowsElementTests.java +++ b/src/test/java/tests/elements/CachedWindowsElementTests.java @@ -30,7 +30,7 @@ public void testShouldWorkWithCalculatorWithCachedElement() { new CachedButton(CalculatorWindow.getPlusButtonLoc()).click(); new CachedButton(CalculatorWindow.getOneButtonLoc()).click(); new CachedButton(CalculatorWindow.getEqualsButtonLoc()).click(); - String result = new CachedButton(CalculatorWindow.getResultsLabelLoc()).getElement().getText(); + String result = new CachedButton(CalculatorWindow.getResultsLabelLoc()).getElement().getAttribute("Value"); Assert.assertTrue(result.contains("2")); } diff --git a/src/test/java/tests/elements/ElementFinderTests.java b/src/test/java/tests/elements/ElementFinderTests.java index b629f5e..e5c0c76 100644 --- a/src/test/java/tests/elements/ElementFinderTests.java +++ b/src/test/java/tests/elements/ElementFinderTests.java @@ -19,7 +19,7 @@ public IElementFinder getElementFinder() { @Test public void shouldBePossibleToUseConditionalWaitWithElementFinder() { BooleanSupplier elementFinderCondition = () -> - getElementFinder().findElement(CalculatorWindow.getResultsLabelLoc()).getText().contains("3"); + getElementFinder().findElement(CalculatorWindow.getResultsLabelLoc()).getAttribute("Value").contains("3"); Assert.assertFalse(elementFinderCondition.getAsBoolean(), "condition should not match before actions"); Assert.assertTrue(AqualityServices.get(IConditionalWait.class) .waitFor(driver -> { diff --git a/src/test/java/tests/elements/WindowsElementTests.java b/src/test/java/tests/elements/WindowsElementTests.java index d3c04c1..6fe2d5f 100644 --- a/src/test/java/tests/elements/WindowsElementTests.java +++ b/src/test/java/tests/elements/WindowsElementTests.java @@ -64,14 +64,16 @@ public void testShouldBePossibleToGetElementWithCustomTimeout() { @Test public void testShouldBePossibleToClickOnElementAndGetText() { CalculatorWindow.getOneButton().click(); - Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getText(), "1", "1 should be entered"); + Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getText(), "", "Text should remain empty for input field"); + Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getAttribute("Value"), "1", "1 should be entered"); } @Test public void testShouldBePossibleToSendKeysToElement() { String keys = "12"; CalculatorWindow.getLeftValueTextBox().sendKeys(keys); - Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getText(), keys, "Keys should be entered"); + Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getText(), "", "Text should remain empty for input field"); + Assert.assertEquals(CalculatorWindow.getLeftValueTextBox().getAttribute("Value"), keys, "Keys should be entered"); } @Test