use a wait condition before interacting with element c should appear after ajax response.
WebDriverWait wait = new WebDriverWait(webDriver, 5);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("xpath_to_element")));
this makes webDriver wait for your item for 5 seconds. This question has been asked before.
source
share