//Mouse over the Main Menu
Actions builder = new Actions(driver);
IWebElement menuBar = driver.FindElement(By.XPath(“/ /a[@id=’menuMyTeam’]”));
builder.MoveToElement(menuBar) .Perform();
//Click on the sub menu
var click = builder.MoveToElement(menuBar. FindElement(By.XPath(“//a[@id= ‘Team_TalentNineBox’]/span”))) ;
click.Click();
click.Perform();
//Drag and drop
Actions move = new Actions(driver);
IWebElement empToMove = driver.FindElement(By.XPath(“/ /li[@id=’employee_308145′]”));
IWebElement empTarget = driver.FindElement(By.XPath(“/ /li[@id=’employee_308144′]”));
move.DragAndDrop(empToMove, empTarget).Perform();
Leave a Reply