This is the code I am trying to execute
public WebDriver createPart() { try { driver.findElement(By.id(\"username\")).sendKeys(\"502409373\");
Change visibilityOfElementLocated instead of elementToBeClickable. You can directly find the webeelement, and then click on it as shown below:
visibilityOfElementLocated
elementToBeClickable
element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//a[@title='Part Details']")));