title: how to make selenium web driver wait for infinite time
body: <pre><code>public class Ajax_steps {
  
  private String URL = "http://demo.guru99.com/selenium/ajax.html";
      private WebDriver driver;
      private WebDriverWait wait;
  
  public void start(){
  
  System.setProperty("webdriver.chrome.driver", "src/test/drivers/chromedriver.exe");
      driver = new ChromeDriver();
  driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
      driver.get(URL);           
  wait = new WebDriverWait(driver, 3);
      wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector(".container")));
      driver.findElement(By.id("yes")).click();
      driver.findElement(By.id("buttoncheck")).click();
      WebElement textElement = driver.findElement(By.className("radiobutton"));
      wait.until(ExpectedConditions.visibilityOf(textElement));
  
  driver.close();
  
   }
  }
  </code></pre>
  
  <p>the above code is working perfectly. But i need a modification like when we declare <code>new WebDriverWait</code> with 3 sec . i want it wait  for infinite time...How can i do it...</p>