sendKeys(Keys.TAB) no longer working in Firefox 26 and Selenium 2.39

433 views
Skip to first unread message

Dave Dumaresq

unread,
Jan 21, 2014, 4:25:30 PM1/21/14
to seleniu...@googlegroups.com
Hi there,

I'm populating several GWT SuggestBox fields with text values sent using sendKeys. I select the suggestion for each field by sending Keys.TAB, which both accepts the current suggestion and exposes the subsequent field.
This no longer works properly after upgrading from Firefox 25.01 and selenium-server-standalone-2.35 to Firefox 26 and selenium-server-standalone-2.39.0. Only the first SuggestBox field gets populated.

Thanks,
Dave

Dave Dumaresq

unread,
Jan 22, 2014, 2:19:32 PM1/22/14
to seleniu...@googlegroups.com
I managed to workaround this by using sendKeys(Keys.RETURN).

Thanks,
Dave

Mikhail Laptev

unread,
Feb 3, 2014, 7:38:46 AM2/3/14
to seleniu...@googlegroups.com
Hello Dave,

Did you use this function with selenium object?
Currently I have the same issue on the same environment. 
In Selenuim IDE I've used this function and all works fine. I've converted my test to Java code, just to use it with testNG, and found that selenium object has no such function.
May be you know how to send 'Enter' key to GWT SuggestBox?
I've tried a lot of examples from the Internet but without success.

BTW, For our purpose we are using not GWT SuggestBox, but our custom control that based on SuggestBox.

Thanks,
Mike

Dave Dumaresq

unread,
Feb 3, 2014, 12:46:53 PM2/3/14
to seleniu...@googlegroups.com
Hi Mike, yes I used the selenium object, Keys.RETURN.


To put it as simply as possible, I'm calling:

import org.openqa.selenium.*;

private WebDriver driver;
driver
= new FirefoxDriver();
driver
.findElement(By.id("field-id")).sendKeys(Keys.RETURN);

I also found that--like Keys.TAB, using Keys.ENTER did NOT work.


Dave
Reply all
Reply to author
Forward
0 new messages