I'm trying to automate a login page using selenium-webdriver and I'm using IE as the browser. The problem that I'm experiencing is that after the login I'm not able to select the image button. I have even introduced time delay after the login credentials are entered still the script runs and the button doesn't gets clicked. P.S I have commented all the methods I have tried too.

The code I have used is:

```
    System.setProperty("webdriver.ie.driver",
            "C:/Program Files/IEDriverServer/IEDriverServer.exe");

    WebDriver driver=new InternetExplorerDriver();
    driver.manage().window().maximize();

    driver.navigate().to("website name");

    driver.findElement(By.id("userid")).sendKeys("username");
    driver.findElement(By.id("password")).sendKeys("password");
    //driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
    driver.findElement(By.id("submitButton")).click();
    Thread.sleep(5000);
    //driver.findElement(By.id("imgBtnAdd")).click();
    //driver.findElement(By.cssSelector("a[href='Images/Go.gif']")).click(); 
    driver.findElement(By.xpath("//img[@ src='Images/Go.gif']")).click();
    //System.out.println("Manual Click of Ok button");
    //By xpath = By.xpath("//button[@name='imgBtnAdd'][@type='image'][contains(image(),'Images/Go.gif')]");
    //WebElement myDynamicElement = (new WebDriverWait(driver, 10))
      //.until(ExpectedConditions.presenceOfElementLocated(xpath));
    //myDynamicElement.click();

    driver.findElement(By.cssSelector("input[id='rblRoleGroup_4']")).click();

    driver.findElement(By.id("imgBtnRoleGroup")).click();

    //WebElement element = driver.findElement(By.id("imgBtnAdd"));
    //Thread.sleep(5000);
    //JavascriptExecutor executor = (JavascriptExecutor)driver;
    //executor.executeScript("arguments[0].click();", element);        
    //driver.close();

```