Wednesday, 13 December 2017

Adding utility yo your selenium framework part-3

MouseHover
package test.java.util;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;

public class MouseHover extends DriverFactory {
 
 public static void HoverAndClick(WebElement elementToHover,WebElement elementToClick) {
  Actions action = new Actions(driver);
  action.moveToElement(elementToHover).click(elementToClick).build().perform();
 }
 
 public static void Hover(WebElement element) {
  Actions action = new Actions(driver);
  action.moveToElement(element).perform();
 }

}

No comments:

Post a Comment

Set up testlink with Selenium Framework

To Integrate Testlink with selenium add following jars in your setup testlink-api-client-2.0.jar xmlrpc-common-3.1.jar xmlrpc-client-...