Unable to use getDriver as a wait statement

Windows.getDriver().findElement(By.name(“Itinerary”))

I found the name “Itinerary” through windows spy but when I try to use this it didn’t work for me.