Program: 20643
Project: 20643
Buggy source:
@Test public void testManagedRepository(){
  login(getAdminUsername(),getAdminPassword());
  WebDriverWait wait=new WebDriverWait(getWebDriver(),20);
  WebElement el;
  el=wait.until(ExpectedConditions.elementToBeClickable(By.id("String_Node_Str")));
  tryClick(el,ExpectedConditions.presenceOfElementLocated(By.id("String_Node_Str")),"String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.xpath("String_Node_Str")));
  tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")),"String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.xpath("String_Node_Str")));
  el=tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")),"String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  el.click();
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  tryClick(By.id("String_Node_Str"),ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")),"String_Node_Str",3,10);
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  assertTextNotPresent("String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.id("String_Node_Str")));
  el.click();
  el=wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  selectValue("String_Node_Str","String_Node_Str");
  ((JavascriptExecutor)getWebDriver()).executeScript("String_Node_Str");
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  selectValue("String_Node_Str","String_Node_Str");
  el.click();
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  clickLinkWithXPath("String_Node_Str");
  waitPage();
  el=wait.until(ExpectedConditions.presenceOfElementLocated(By.id("String_Node_Str")));
  assertTextPresent("String_Node_Str");
  List<WebElement> repos=el.findElements(By.xpath("String_Node_Str"));
  Assert.assertTrue("String_Node_Str",repos.get(0).getText().contains("String_Node_Str"));
  Assert.assertTrue("String_Node_Str",repos.get(1).getText().contains("String_Node_Str"));
}

Fixed version (ground truth):
@Test public void testManagedRepository(){
  login(getAdminUsername(),getAdminPassword());
  WebDriverWait wait=new WebDriverWait(getWebDriver(),20);
  WebElement el;
  el=wait.until(ExpectedConditions.elementToBeClickable(By.id("String_Node_Str")));
  tryClick(el,ExpectedConditions.presenceOfElementLocated(By.id("String_Node_Str")),"String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.xpath("String_Node_Str")));
  tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.xpath("String_Node_Str")),"String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.xpath("String_Node_Str")));
  el=tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")),"String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  setFieldValue("String_Node_Str","String_Node_Str");
  el.click();
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  tryClick(By.id("String_Node_Str"),ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")),"String_Node_Str",3,10);
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  assertTextNotPresent("String_Node_Str");
  el=wait.until(ExpectedConditions.elementToBeClickable(By.id("String_Node_Str")));
  el.click();
  el=wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  selectValue("String_Node_Str","String_Node_Str");
  ((JavascriptExecutor)getWebDriver()).executeScript("String_Node_Str");
  wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("String_Node_Str")));
  selectValue("String_Node_Str","String_Node_Str");
  el.click();
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("String_Node_Str"),"String_Node_Str"));
  clickLinkWithXPath("String_Node_Str");
  waitPage();
  el=wait.until(ExpectedConditions.presenceOfElementLocated(By.id("String_Node_Str")));
  assertTextPresent("String_Node_Str");
  List<WebElement> repos=el.findElements(By.xpath("String_Node_Str"));
  Assert.assertTrue("String_Node_Str",repos.get(0).getText().contains("String_Node_Str"));
  Assert.assertTrue("String_Node_Str",repos.get(1).getText().contains("String_Node_Str"));
}