From cd1cbf993d0b883a2c8cec318f7be351f4fee181 Mon Sep 17 00:00:00 2001 From: Ilmari Marttila Date: Fri, 13 Dec 2024 12:17:20 +0200 Subject: [PATCH] Link locator doesn't have to be on same line with anchor tag Seleniumlibrary have maybe some bug where formatting of html files affects on how it finds links by text. --- web/robot/yhteiset_resurssit.resource | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/robot/yhteiset_resurssit.resource b/web/robot/yhteiset_resurssit.resource index 243e867e..aac6fef4 100644 --- a/web/robot/yhteiset_resurssit.resource +++ b/web/robot/yhteiset_resurssit.resource @@ -30,7 +30,7 @@ Kipa Suite Setup Open Sub Page Verify Location And Title [Arguments] ${link_name} ${link} ${page_title} - Click Link ${link_name} + Click Link xpath://a[contains(., '${link_name}')] Wait Until Keyword Succeeds 10 sec 2 sec Location Should Be ${KIPA_URL}/${TESTIKISA}/${link}/ Wait Until Keyword Succeeds 10 sec 2 sec Title Should Be ${page_title} @@ -46,7 +46,7 @@ Remove Competition Open KiPa Main Page click link ${competition} title should be Kipa - ${competition} - Click Link poista kisa + Click Link xpath://a[contains(., 'poista kisa')] Title Should Be ${KISAN_POISTO_OTSIKKO} Click Button Kyllä Wait Until Keyword Succeeds 10 sec 2 sec Title Should Be ${KAIKKI_KISAT_OTSIKKO}