title: My 'Explicit Wait' doesn't work but 'Implicit Wait' Works?
body: <p>Why is my Explicit Wait not working?</p>
  
  <ol>
  <li><p>My Implicit wait works but my Explicit wait doesn't seem to use the assigned timeout?</p></li>
  <li><p>For example if i set the Explicit timeout to 300Seconds it will revert to the implicit timeout or if i comment out the implicit timeout it will throw an error / timeout exception straight away. </p></li>
  </ol>
  
  <p><strong>Code Used:</strong></p>
  
  <pre><code>public class Base_Page extends TestListenerAdapter {
  public @FindBy(css = ".ajax_loader") WebElement ajaxLoadScreen;
  public @FindBy(css = "#preloaderSpinner") WebElement preloadSpinner;
  public WebDriver driver;
  public String packageName;
  public String className;
  public WebDriverWait wait;
  protected JavascriptExecutor jsExecutor;
  
  public Base_Page(WebDriver driver) throws Exception {
      this.driver = driver;
  
      this.wait = new WebDriverWait(this.driver, 300);
  
      this.driver.manage().window().maximize();
      this.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
      this.driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
  
      Properties p = new Properties();
      FileInputStream fi = new FileInputStream(Constant.CONFIG_PROPERTIES_DIRECTORY);
      p.load(fi);
      this.browser_type = p.getProperty("browser");
      this.page_url = p.getProperty("url");
  }
  
  public void loadPage() throws Exception {
      this.driver.get(page_url);
  }
  
  public void clickMyAccount() {
      driver.findElement(By.xpath(".//*[@id='account_links']/li[1]/a2")).click();
  }
  
  public void clickHelp() {
      this.driver.findElement(By.xpath(".//*[@id='help_links']/li[1]/a")).click();
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/HWw2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HWw2Y.png" alt="enter image description here"></a></p>