JAVA-Selenium Error Unique Scenario Pls Take a Look :   While working on code written in JAVA to automate clicking of a search button on a certain website, i have come across an interesting problem.
This is what is happening - 
The java code runs in loops and locates plus clicks the search button on every iteration.This works well for initial two-three iterations but then the code breaks.If manually during execution, before the breaking of code i click on this web-element that is button, everything works well.

Here is the code that is used,kindly take a look - 
Command in Java 
	WebElement shineWebElementSearchButton = shineWaitLocal.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("button[id=id_searchButton]")));
		shineWebElementSearchButton.click();



**The error thrown is shared below:**

Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.cssSelector: input[id=id_q] (tried for 30 second(s) with 500 MILLISECONDS interval)
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:26.402Z'
System info: host: 'ADMIN-PC', ip: '192.168.2.8', os.name: 'Windows 10', os.arch: 'x86', os.version: '10.0', java.version: '1.8.0_161'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\admin\AppData\Local\Temp\rust_mozprofile.8ZXO56Gv1Uip, rotatable=false, timeouts={implicit=0, pageLoad=300000, script=30000}, pageLoadStrategy=normal, moz:headless=false, platform=XP, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=57.0, platformVersion=10.0, moz:processID=3628, browserName=firefox, javascriptEnabled=true, platformName=XP, moz:webdriverClick=false}]
Session ID: 24c06052-dcac-42f4-86ed-46f4002f096e
	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:82)
	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
	at autoApplyShine.applyForJobs.applyForJobsFunctionality(applyForJobs.java:32)
	at autoApplyShine.ApplyShine.main(ApplyShine.java:28)
