-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBugDetail.java
More file actions
47 lines (34 loc) · 1.05 KB
/
BugDetail.java
File metadata and controls
47 lines (34 loc) · 1.05 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package pom;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Select;
import helper.StartWebDriver;
public class BugDetail extends PageBase {
private WebDriver webDriver;
@FindBy(how=How.LINK_TEXT,linkText="New Case")
private WebElement NewCase;
@FindBy(how=How.ID,id="bug_severity")
private WebElement Severity;
/* private By Severity = By.id("bug_severity");
private By NewCase = By.linkText("New Case");*/
public BugDetail(WebDriver _driver){
super(_driver);
webDriver = _driver;
}
public void SelectSeverity(String value) {
/*Select select = new Select(driver.findElement(Severity));*/
Select select = new Select(Severity);
select.selectByVisibleText(value);
}
public void NaviagteToNewCase() {
/*driver.findElement(NewCase).click();*/
NewCase.click();
}
public void Logout(){
LogOut();
}
}