action class in selenium
By using Actions class
WebElement element = driver.findElement(By.xpath("xpath"));
Actions action = new Actions(driver);
action.moveToElement(element).perform();
action class in selenium
By using Actions class
WebElement element = driver.findElement(By.xpath("xpath"));
Actions action = new Actions(driver);
action.moveToElement(element).perform();
action class in selenium
- Actions class allows us to do advanced mouse-keyboard actions.
- such as:
-hovering over
-double click
-right click (contextClick)
-drag and drop
-click and hold
-release
syntax: Action action = new Action(Driver.getDriver());
action.methodName.perform();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us