DWQA Ask QuestionCategory: QuestionsAssignment: Complete all the Operations using Actions for Site jqueryUI.com
admin Staff asked 5 years ago

Perform all the Operations on site: https://jqueryui.com/

  1. Draggable
  2. Droppable
  3. Resizable
  4. Selectable
  5. Sortable
  6. AutoComplete
  7. CheckBox Radio
  8. Control Group
  9. Date Picker
  10. Dialog
  11. Menu
  12. Select Menu
  13. Slider
  14. Spinner as Alert and Handling Enable and Disabled
  15. Tooltip
31 Answers
Pallavi Gadale Staff answered 5 years ago

12.Dialog:
driver.get(“http://jqueryui.com/dialog/”);
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
Actions act=new Actions(driver);
driver.switchTo().frame(0);

WebElement Move=driver.findElement(By.xpath(“//div[@role=’dialog’]”)); //xpath of droppable
act.clickAndHold(Move).moveToElement(Move,0, 50).release(Move).perform();
Thread.sleep(1000);
WebElement resize=driver.findElement(By.xpath(“//div[@class=’ui-resizable-handle ui-resizable-e’]”));
act.clickAndHold(resize).moveByOffset(50,50).release(resize).build().perform();
Thread.sleep(1000);
WebElement close=driver.findElement(By.xpath(“//span[@class=’ui-button-icon ui-icon ui-icon-closethick’]”));
act.click(close).perform();