Hi Jay!!
I tried your solution on Google Chrome, IE and FF. However,
it was behaving as follows:
driver.findElement(By.Id(Id of the button)).sendKeys(Keys.Tab)
It gets the button with the given id and then sends a tab to it
resulting in setting the focus on the next element.
How did this work at your end?
Thanks,
Sanam
On Mar 14, 6:23 am, Jayaraman - Inspired to become Software Architect
> *driver.findElement(By.Id(Id of the button)).sendKeys(Keys.Tab)*
>
> This is one of the possible solution and Hope this helps you.
>
> -Jay!!
> On Tue, Jan 17, 2012 at 8:19 AM, Arun Kumaresan <
arunkumare...@gmail.com>wrote:
>
>
>
>
>
>
>
> > In my previous email, I meant to say that, the Issue "Clicking a button on
> > IE using Webdriver" gets resolved, if the focus on the button is set before
> > you call the click API on the button using webdriver. But the Issue is how
> > to set the focus on the button.
>
> > Pls help.