From 52ab052aef0e2156fad5982b4747e7decd60dfa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 4 Sep 2023 16:11:20 +0200 Subject: [PATCH] Choose the Login option before trying to enter the login credentials --- appiumtests/CMakeLists.txt | 8 ++++---- appiumtests/logintest.py | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/appiumtests/CMakeLists.txt b/appiumtests/CMakeLists.txt index 70499608a..61fe50fd4 100644 --- a/appiumtests/CMakeLists.txt +++ b/appiumtests/CMakeLists.txt @@ -17,7 +17,7 @@ if(NOT SeleniumWebDriverATSPI_FOUND) return() endif() -#add_test( -# NAME logintest -# COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/logintest.py -#) +add_test( + NAME logintest + COMMAND selenium-webdriver-at-spi-run ${CMAKE_CURRENT_SOURCE_DIR}/logintest.py +) diff --git a/appiumtests/logintest.py b/appiumtests/logintest.py index dec10fbb0..1925998bd 100755 --- a/appiumtests/logintest.py +++ b/appiumtests/logintest.py @@ -35,6 +35,8 @@ class LoginTest(unittest.TestCase): self.driver.quit() def test_login(self): + self.driver.find_element(by=AppiumBy.NAME, value="Login").click() + self.driver.find_element(by=AppiumBy.NAME, value="Matrix ID").send_keys("@user:localhost:1234") self.driver.find_element(by=AppiumBy.NAME, value="Continue").click() self.driver.find_element(by=AppiumBy.NAME, value="Password").send_keys("1234")