package de.adesso.iliasdownloader3.service.impl.webparser;

import lombok.Getter;

/**
 * @author broj
 * @since 18.08.2016
 */
enum CssSelectors {
    COURSE_SELECTOR("a[href*='_crs_'].il_ContainerItemTitle"),
    GENERIC_ITEM_SELECTOR("a[target='_top'].il_ContainerItemTitle");

    @Getter
    private final String cssSelector;

    CssSelectors(String cssSelector) {
        this.cssSelector = cssSelector;
    }
}

@@ -212,69 +212,156 @@
     
-GENERIC_ITEM_SELECTOR(%22a%5Btarget='_top'%5D.il_ContainerItemTitle
+ITEM_CONTAINER_SELECTOR(%22.il_ContainerListItem%22),%0A    ITEM_TITLE_SELECTOR(%22a.il_ContainerItemTitle%22),%0A    ITEM_PROPERTIES_SELECTOR(%22.il_ItemProperty
 %22);%0A

add new selectors for course item title/properties