-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEnterBug.java
More file actions
46 lines (34 loc) · 1018 Bytes
/
EnterBug.java
File metadata and controls
46 lines (34 loc) · 1018 Bytes
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
package pom;
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
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 helper.StartWebDriver;
public class EnterBug extends PageBase {
private WebDriver webDriver;
@FindBy(how=How.LINK_TEXT,linkText="Testng")
private WebElement Testng;
@FindBy(how=How.LINK_TEXT,linkText="New Run")
private WebElement NewRun;
/*private By Testng = By.linkText("Testng");
private By NewRun = By.linkText("New Run");*/
public EnterBug(WebDriver _driver){
super(_driver);
webDriver = _driver;
}
public BugDetail ClickTestNg() {
/*driver.findElement(Testng).click();*/
Testng.click();
return new BugDetail(webDriver);
}
public void Logout(){
LogOut();
}
public void NavigateToNewRun() {
NewRun.click();
/*driver.findElement(NewRun).click();*/
}
}