Sunday, November 25, 2012

Performing fireEvent in WebDriver

WebElement element = driver.findElement(By.id("myElement"));
JavascriptLibrary javascript = new JavascriptLibrary();
javascript.callEmbeddedSelenium(driver, "triggerEvent", element, "blur");

Ref:https://groups.google.com/forum/?fromgroups#!topic/selenium-users/jk59XG2TQk8

No comments: