From b5d6c09157924971b8dab93b3196ef0cdaa6709e Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Wed, 11 Mar 2020 11:04:02 +0100
Subject: [PATCH] OO-4454: fix XPath to catalog category link for Firefox

---
 src/test/java/org/olat/selenium/page/course/MyCoursesPage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/olat/selenium/page/course/MyCoursesPage.java b/src/test/java/org/olat/selenium/page/course/MyCoursesPage.java
index ced36123b6e..6b8efc89bfc 100644
--- a/src/test/java/org/olat/selenium/page/course/MyCoursesPage.java
+++ b/src/test/java/org/olat/selenium/page/course/MyCoursesPage.java
@@ -126,7 +126,7 @@ public class MyCoursesPage {
 	}
 	
 	public MyCoursesPage selectCatalogEntry(String shortTitle) {
-		By titleBy = By.xpath("//div[contains(@class,'o_sublevel')][div[contains(@class,'o_meta')]/h4[@class='o_title'][contains(.,'" + shortTitle + "')]]/div/a");
+		By titleBy = By.xpath("//div[contains(@class,'o_sublevel')]/div[contains(@class,'o_meta')]/h4/a[span[contains(.,'" + shortTitle + "')]]");
 		OOGraphene.waitElement(titleBy, browser);
 		List<WebElement> titleLinks = browser.findElements(titleBy);
 		Assert.assertEquals(1, titleLinks.size());
-- 
GitLab