I have tried using selenium to automate a website and select a option from the drop-down menu, but the problem I am facing is that after the option is selected the ajax is not executed. This only happens when using selenium, I had tried this manually and it worked. Webdriver wait is not working for me. Here is the code that does that:
WebElement element =(driver.findElement(By.id("equity_optionchain_select")));
Select elementSelect=new Select(element);
elementSelect.selectByVisibleText("BANKNIFTY");