I'm trying to click search button on flipkart through Selenium Webdriver using Java, i'm able to click the button by the X-path and i written 'Boolean' to display button was clicked. Here's the code:
WebElement search = driver.findElement(By.xpath(".//*[@id='fk-header-search-form']/div/div/div[2]/input[1]")); search.click(); boolean clicked = search.isEnabled(); System.out.println("Serach Button Clicked"+clicked);