Advanced user interactions is not work correctly with native events
13 views
Skip to first unread message
Vladislav Alyukov
unread,
Feb 13, 2012, 12:10:25 AM2/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi, I try launch keyboard interaction test with disable native events (use synthetic events) and test pass, otherwise case all actions send to current focused elements and tests filed. It's known issue?
webdriver version 2.19.0/firefox version 9.0.1
tests example === @DataProvider public Object[][] nativeEventState() { return new Object[][]{ {false}, {true} }; }
@Test(dataProvider = "nativeEventState") public void actionsWithNativeEventsTest(Boolean nativeEventState) { final FirefoxProfile profile = new FirefoxProfile(); profile.setEnableNativeEvents(nativeEventState); WebDriver driver = new FirefoxDriver(profile); driver.get("http://go.mail.ru/search?q=test"); try { new Actions(driver).keyDown(Keys.CONTROL).sendKeys(Keys.RIGHT).keyUp(Keys.CONTROL).perform(); while (System.currentTimeMillis() < System.currentTimeMillis() + 5000) { if (driver.findElement(By.xpath("//span[@class='page page-prev']")).isDisplayed()) break; } assertTrue(driver.findElement(By.xpath("// span[@class='page page-prev']")).isDisplayed()); } finally { driver.quit(); } }