blob: 4037419150f695a7bb649760f0b597438122fc1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package com.att.ecomp.dcae.ci.ui.rule_editor.components.actions.from;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.att.ecomp.dcae.ci.ui.utils.ByTest;
import com.att.ecomp.dcae.ci.ui.utils.Locator;
import com.att.ecomp.dcae.ci.utilities.Report;
import com.aventstack.extentreports.Status;
public class DeleteableFromComponent extends SimpleFromComponent {
public DeleteableFromComponent(WebDriverWait timeout, WebElement element) {
super(timeout, element);
}
public void clickDelete(WebDriver driver) {
Report.log(Status.INFO, "Click on delete from...");
Actions action = new Actions(driver);
action.moveToElement(root).perform();
wait.until(Locator.from(root).findVisible(ByTest.id("btnDelete"), 0)).click();
}
}
|