Q.Difference between sendKeys() Present in WebElelement & Action classs ?
-sendKeys() persent in WebElelement interface is used to type given input in the specified element.
where as SendKeys() method present in Actions class is used to type the given input in the given cursor position or on the specific element
There are 2 send Keys() method in Action class
one is used to type the sendKeys in current element cursor location.
Another is used to type the send keys in specified location.
Example
1. WebElement un=driver.findElement(By.id("username));
un.sendkeys("Admin").click();
2. Actions actions=new Actions(driver);
actions.sendKeys("abc").perform();
3. actions.sendKeys(un,"xyz").perform(); //Method overloading

