Skip to content

Commit

Permalink
MIR-1362 revert to test of the dropdown element
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy 'Alex' Levshyn committed Jan 8, 2025
1 parent 188de57 commit 842183a
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,43 +179,50 @@ public void searchByPublication(String title, String subTitle, String author, St

// select mods (filter query) is 'all'
if (title != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("all");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Alles")).click();
qry(title);
}

// select mods (filter query) is 'mods.title'
if (subTitle != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("mods.title");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Titel")).click();
qry(subTitle);
}

// select mods (filter query) is 'mods.author'
if (author != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("mods.author");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Autor")).click();
qry(author);
}

// select mods (filter query) is 'mods.name.top'
if (name != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("mods.name.top");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Name")).click();
qry(name);
}

// select mods (filter query) is 'mods.nameIdentifier'
if (nameIdentifier != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("mods.nameIdentifier");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Namens Identifikator")).click();
qry(nameIdentifier);
}

// select mods (filter query) is 'allMeta'
if (metadata != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("allMeta");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Alle Metadaten")).click();
qry(metadata);
}

// select mods (filter query) is 'content'
if (content != null) {
new Select(driver.waitAndFindElement(By.id("select_mods"))).selectByValue("content");
driver.waitAndFindElement(By.id("search_type_label")).click();
driver.waitAndFindElement(MCRBy.partialLinkText("Volltext")).click();
qry(content);
}

Expand Down

0 comments on commit 842183a

Please sign in to comment.