How to Fire Event on any WebElement using WebDriver
Steps for Fire Event:
1. Create the driver object for any browser
2. Perform the action on WebElement say "Select Item from the list box"
3. Code either of the following to fire event on the WebElement
- driver.switchTo().activeElement().sendKeys(Keys.TAB);
-
- WebElement element = driver.findElement(By.id("myElement"));
- JavascriptLibrary javascript = new JavascriptLibrary();
- javascript.callEmbeddedSelenium(driver, "triggerEvent", element, "blur");
Could you plz send Suryadevara rammohana Rao novels
ReplyDelete